From 26f34fe409958ebe62df9f4e1f4cba2f57429e0b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 1 Aug 2023 16:17:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=BE=85=E5=8A=A9=E7=BD=91=E6=A0=BC=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E6=98=BE=E7=A4=BA=E5=8F=AF=E8=83=BD=E4=B8=8E?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E4=B8=8D=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= =?UTF-8?q?=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 },