From 7e6749e9fb48ff082002af880e1cafc477083773 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 21 May 2021 11:04:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E7=9B=98=E7=BC=96?= =?UTF-8?q?=E8=BE=91=20=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/edit/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 3467328e9f..fd9c585d51 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -241,7 +241,7 @@ export default { showPanel(type) { debugger if (this.showIndex === -1 || this.showIndex === type) { - this.show = !this.show + this.$nextTick(() => (this.show = !this.show)) } this.showIndex = type }, @@ -254,6 +254,7 @@ export default { // 点击样式按钮 排除 const stick = evt.target.closest('.el-icon-magic-stick') if (!parent && !self && !stick) { + debugger this.show = false window.removeEventListener('click', this.closeSidebar) this.showIndex = -1 @@ -371,6 +372,7 @@ export default { this.openFilterDiolog() }, closeLeftPanel() { + debugger this.show = false // this.beforeDestroy() }