From 8299080fb8cc466a0b7149fff1c86328413cb23d Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 1 Aug 2023 16:06:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E7=A9=BA=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=A6=81=E6=AD=A2=E5=AF=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/PanelViewShow.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/views/panel/list/PanelViewShow.vue b/frontend/src/views/panel/list/PanelViewShow.vue index b9997b9215..e4b1be5423 100644 --- a/frontend/src/views/panel/list/PanelViewShow.vue +++ b/frontend/src/views/panel/list/PanelViewShow.vue @@ -168,6 +168,7 @@ Date: Tue, 1 Aug 2023 16:17:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=85=E5=8A=A9=E7=BD=91=E6=A0=BC=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E5=BC=80=E5=85=B3=E6=98=BE=E7=A4=BA=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E4=B8=8E=E4=B8=BB=E9=A2=98=E4=B8=8D=E5=90=8C=E6=AD=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#5665?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/components/Toolbar.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/components/canvas/components/Toolbar.vue b/frontend/src/components/canvas/components/Toolbar.vue index 4038580fd5..0499cb9710 100644 --- a/frontend/src/components/canvas/components/Toolbar.vue +++ b/frontend/src/components/canvas/components/Toolbar.vue @@ -328,6 +328,7 @@ export default { eventBus.$on('preview', this.preview) eventBus.$on('checkAndSave', this.checkAndSave) eventBus.$on('clearCanvas', this.clearCanvas) + bus.$on('onSubjectChange', this.editPanelInit) this.scale = this.canvasStyleData.scale this.mobileLayoutInitStatus = this.mobileLayoutStatus this.showGridSwitch = this.canvasStyleData.aidedDesign.showGrid @@ -339,6 +340,7 @@ export default { eventBus.$off('checkAndSave', this.checkAndSave) eventBus.$off('clearCanvas', this.clearCanvas) eventBus.$off('editPanelInitReady', this.editPanelInit) + bus.$off('onSubjectChange', this.editPanelInit) clearInterval(this.timer) this.timer = null },