From 7fd4121fd08f7c1560f2b74b9ee748466d96d216 Mon Sep 17 00:00:00 2001 From: v_xugzhou <941071842@qq.com> Date: Fri, 20 Dec 2024 10:23:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E9=A1=B5=E8=A2=AB=E5=B5=8C=E5=85=A5=E5=90=8E=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=BF=94=E5=9B=9E=E6=8A=9B=E5=87=BA=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=8F=90=E5=89=8D=20--story=3D121000017=20#?= =?UTF-8?q?=20Reviewed,=20transaction=20id:=2027337?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/task/TaskExecute/TaskOperationHeader.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/desktop/src/pages/task/TaskExecute/TaskOperationHeader.vue b/frontend/desktop/src/pages/task/TaskExecute/TaskOperationHeader.vue index 0a4d0450d..6aa723616 100644 --- a/frontend/desktop/src/pages/task/TaskExecute/TaskOperationHeader.vue +++ b/frontend/desktop/src/pages/task/TaskExecute/TaskOperationHeader.vue @@ -199,6 +199,11 @@ this.$emit('onTaskParamsClick', type, name) }, onBack () { + // 如果被嵌入了,则像父页面发送事件 + if (this.hideHeader) { + window.parent.postMessage({ eventName: 'goBackEvent' }, '*') + return + } if (this.view_mode === 'appmaker') { return this.$router.push({ name: 'appmakerTaskHome', @@ -221,11 +226,6 @@ if (!isFromCreate && this.$route.name === 'taskExecute' && window.history.length > 2) { return this.$router.back() } - // 如果被嵌入了,则像父页面发送事件 - if (this.hideHeader) { - window.parent.postMessage({ eventName: 'goBackEvent' }, '*') - return - } this.$router.push({ name: 'taskList', params: { project_id: this.project_id }