From d69b5756f5b1aca827bab3309e00e2ce3752beb6 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 29 Jul 2022 11:54:29 +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=E7=9B=AE=E5=BD=95=E4=B9=9F=E5=8F=AF=E4=BB=A5=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E9=A2=84=E8=A7=88=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E4=BB=AA=E8=A1=A8=E6=9D=BF=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/PanelList.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index 0bfe88dfb4..cb13e2b738 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -374,8 +374,7 @@ export default { bus.$off('newPanelFromMarket', this.newPanelFromMarket) }, mounted() { - this.$store.commit('setComponentData', []) - this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING) + this.clearCanvas() this.defaultTree(true) this.initCache() const routerParam = this.$router.currentRoute.params @@ -845,7 +844,9 @@ export default { this.searchType = searchTypeInfo }, editFromPanelViewShow() { - this.edit(this.lastActiveNodeData, this.lastActiveNode) + this.$store.commit('setComponentData', []) + this.$store.commit('setCanvasStyle', DEFAULT_COMMON_CANVAS_STYLE_STRING) + bus.$emit('PanelSwitchComponent', { name: 'PanelEdit' }) }, editPanelBashInfo(params) { if (params.operation === 'status') {