From c7ad0a5b3909ba32a5338b7eed6f32d34238f23e Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 3 Nov 2021 22:25:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BE=B9=E7=95=8C=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/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/panel/index.vue b/frontend/src/views/panel/index.vue index 25165d0b8b..dfbceec004 100644 --- a/frontend/src/views/panel/index.vue +++ b/frontend/src/views/panel/index.vue @@ -3,7 +3,7 @@ - + @@ -24,7 +24,8 @@ export default { return { component: PanelMain, componentName: 'PanelMain', - param: {} + param: {}, + editShow: true } }, watch: { @@ -42,6 +43,17 @@ export default { this.param = c.param this.componentName = c.name this.$store.dispatch('panel/setMainActiveName', c.name) + if (this.componentName === 'PanelEdit') { + setTimeout(() => { + this.editShow = false + this.$nextTick(() => { + this.editShow = true + }) + }, 500) + } else { + this.editShow = true + } + // switch (c.name) { // case 'PanelEdit': // this.component = PanelEdit