From 74cbcc62271c52d2a01b00776910df5d9323d2c7 Mon Sep 17 00:00:00 2001 From: xudan Date: Fri, 12 Sep 2025 09:11:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=96=B0=E5=90=AF?= =?UTF-8?q?=E7=94=A8=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=9C=A8=E5=9C=BA=E6=99=AF=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E5=92=8C=E5=9C=BA=E6=99=AF=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=B8=AD=E5=8F=AF=E4=BB=A5=E8=BF=94=E5=9B=9E=E5=88=B0?= =?UTF-8?q?=E7=88=B6=E7=BA=A7=20iframe=20=E7=9A=84=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/movement-supervision.vue | 8 ++++---- src/pages/scene-editor.vue | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/movement-supervision.vue b/src/pages/movement-supervision.vue index 21385ce..b550240 100644 --- a/src/pages/movement-supervision.vue +++ b/src/pages/movement-supervision.vue @@ -350,9 +350,9 @@ const contextMenuState = ref(contextMenuManager.getState()); //#endregion // 返回到父级 iframe 的场景卡片 -// const backToCards = () => { -// window.parent?.postMessage({ type: 'scene_return_to_cards' }, '*'); -// }; +const backToCards = () => { + window.parent?.postMessage({ type: 'scene_return_to_cards' }, '*'); +}; //#region 右键菜单处理 /** @@ -418,7 +418,7 @@ const handleGlobalKeydown = (event: KeyboardEvent) => { {{ title }}--{{ isMonitorMode ? '场景监控' : '场景仿真' }} - + 返回 保存比例 diff --git a/src/pages/scene-editor.vue b/src/pages/scene-editor.vue index ce478c5..897c486 100644 --- a/src/pages/scene-editor.vue +++ b/src/pages/scene-editor.vue @@ -179,10 +179,10 @@ const handleAutoSaveAndRestoreViewState = async () => { await autoSaveAndRestoreViewState(editor.value, props.id); }; -// // 返回到父级 iframe 的场景卡片 -// const backToCards = () => { -// window.parent?.postMessage({ type: 'scene_return_to_cards' }, '*'); -// }; +// 返回到父级 iframe 的场景卡片 +const backToCards = () => { + window.parent?.postMessage({ type: 'scene_return_to_cards' }, '*'); +}; // 处理自动生成库位确认 const handleAutoCreateStorageConfirm = (actionPoints: any[]) => { @@ -204,7 +204,7 @@ const handleAutoCreateStorageCancel = () => { {{ title }} --场景编辑 - + 返回 保存比例