From 4d95e14769ea63b2018f496e9055027c86d055a6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 6 Dec 2023 10:53:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=99=AE=E9=80=9A?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=A7=BB=E5=8A=A8=E7=AB=AF=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=94=BB=E5=B8=83=E5=8C=BA=E5=9F=9F=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E6=97=A0=E6=B3=95=E5=B1=95=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/components/canvas/components/Toolbar.vue | 2 +- core/frontend/src/views/mobile/index.vue | 3 ++- core/frontend/src/views/panel/edit/index.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/frontend/src/components/canvas/components/Toolbar.vue b/core/frontend/src/components/canvas/components/Toolbar.vue index 854b34dcb5..d7d86f2530 100644 --- a/core/frontend/src/components/canvas/components/Toolbar.vue +++ b/core/frontend/src/components/canvas/components/Toolbar.vue @@ -654,7 +654,7 @@ export default { openMobileLayout(switchVal) { if (switchVal) { this.$store.commit('openMobileLayout') - bus.$emit('mobile-status-change', 'openMobileLayout', this.componentData) + bus.$emit('mobile-status-change', 'openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo }) } else { this.mobileLayoutSave() } diff --git a/core/frontend/src/views/mobile/index.vue b/core/frontend/src/views/mobile/index.vue index 398e7beea8..e3a70c2b53 100644 --- a/core/frontend/src/views/mobile/index.vue +++ b/core/frontend/src/views/mobile/index.vue @@ -88,7 +88,8 @@ export default { } if (event.data.type === 'openMobileLayout') { - this.$store.commit('setComponentData', event.data.value) + this.$store.commit('setComponentData', event.data.value.componentData) + this.$store.dispatch('panel/setPanelInfo', event.data.value.panelInfo) this.$store.commit('openMobileLayout') } }) diff --git a/core/frontend/src/views/panel/edit/index.vue b/core/frontend/src/views/panel/edit/index.vue index ab17576544..0deb2e4754 100644 --- a/core/frontend/src/views/panel/edit/index.vue +++ b/core/frontend/src/views/panel/edit/index.vue @@ -888,7 +888,7 @@ export default { methods: { handleLoad() { this.mobileLoading = false - this.mobileStatusChange('openMobileLayout', this.componentData) + this.mobileStatusChange('openMobileLayout', { componentData: this.componentData, panelInfo: this.panelInfo }) }, deleteComponentWithId(id) { for (let index = 0; index < this.pcComponentData.length; index++) {