fix: 在地图接口中新增机器人状态字段,修正文件导入时的空文件检查逻辑

This commit is contained in:
xudan 2025-10-14 09:06:58 +08:00
parent d870848926
commit 21c5a20215
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ export interface MapAreaInfo {
//#endregion
//#region 机器人
export type MapRobotInfo = Pick<RobotRealtimeInfo, 'type' | 'active' | 'path' | 'isWaring' | 'isFault'>;
export type MapRobotInfo = Pick<RobotRealtimeInfo, 'type' | 'active' | 'path' | 'isWaring' | 'isFault' | 'state'>;
//#endregion
//#region 库位

View File

@ -61,7 +61,7 @@ const toSync = () =>
const importScene = async () => {
const file = await selectFile('.scene');
if (!file?.size) return;
if (!file) return;
const json = await decodeTextFile(file);
editor.value?.load(json, editable.value, detail.value ?? {}, true); // isImport=true
};