From 6bf2a4f8ae5533512a770911934c793357306edc Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 16 Jun 2021 15:50:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E4=B8=80=E7=BA=A7?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=20=E6=B8=85=E7=90=86=E5=8E=9F=E6=9C=89?= =?UTF-8?q?=E4=BB=AA=E8=A1=A8=E6=9D=BF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/list/PanelMain.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/panel/list/PanelMain.vue b/frontend/src/views/panel/list/PanelMain.vue index c3bda969d8..291b5e2e0a 100644 --- a/frontend/src/views/panel/list/PanelMain.vue +++ b/frontend/src/views/panel/list/PanelMain.vue @@ -55,7 +55,7 @@ export default { } }, mounted() { - this.$store.dispatch('panel/setMainActiveName', 'PanelMain') + this.clear() }, methods: { handleClick(tab, event) { @@ -74,7 +74,17 @@ export default { refreshEnshrine() { this.showEnshrine = false this.$nextTick(() => (this.showEnshrine = true)) + }, + clear() { + // 清空 + this.$store.dispatch('panel/setPanelInfo', { + id: null, + name: '', + preStyle: null + }) + this.$store.dispatch('panel/setMainActiveName', 'PanelMain') } + } }