fix: 在地图接口中新增机器人状态字段,修正文件导入时的空文件检查逻辑
This commit is contained in:
parent
d870848926
commit
21c5a20215
@ -60,7 +60,7 @@ export interface MapAreaInfo {
|
|||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region 机器人
|
//#region 机器人
|
||||||
export type MapRobotInfo = Pick<RobotRealtimeInfo, 'type' | 'active' | 'path' | 'isWaring' | 'isFault'>;
|
export type MapRobotInfo = Pick<RobotRealtimeInfo, 'type' | 'active' | 'path' | 'isWaring' | 'isFault' | 'state'>;
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region 库位
|
//#region 库位
|
||||||
|
|||||||
@ -61,7 +61,7 @@ const toSync = () =>
|
|||||||
|
|
||||||
const importScene = async () => {
|
const importScene = async () => {
|
||||||
const file = await selectFile('.scene');
|
const file = await selectFile('.scene');
|
||||||
if (!file?.size) return;
|
if (!file) return;
|
||||||
const json = await decodeTextFile(file);
|
const json = await decodeTextFile(file);
|
||||||
editor.value?.load(json, editable.value, detail.value ?? {}, true); // 第四个参数isImport=true
|
editor.value?.load(json, editable.value, detail.value ?? {}, true); // 第四个参数isImport=true
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user