提交 7e6749e9 authored 作者: wangjiahao's avatar wangjiahao

fix: 仪表盘编辑 点击事件问题

上级 9721a406
...@@ -241,7 +241,7 @@ export default { ...@@ -241,7 +241,7 @@ export default {
showPanel(type) { showPanel(type) {
debugger debugger
if (this.showIndex === -1 || this.showIndex === type) { if (this.showIndex === -1 || this.showIndex === type) {
this.show = !this.show this.$nextTick(() => (this.show = !this.show))
} }
this.showIndex = type this.showIndex = type
}, },
...@@ -254,6 +254,7 @@ export default { ...@@ -254,6 +254,7 @@ export default {
// 点击样式按钮 排除 // 点击样式按钮 排除
const stick = evt.target.closest('.el-icon-magic-stick') const stick = evt.target.closest('.el-icon-magic-stick')
if (!parent && !self && !stick) { if (!parent && !self && !stick) {
debugger
this.show = false this.show = false
window.removeEventListener('click', this.closeSidebar) window.removeEventListener('click', this.closeSidebar)
this.showIndex = -1 this.showIndex = -1
...@@ -371,6 +372,7 @@ export default { ...@@ -371,6 +372,7 @@ export default {
this.openFilterDiolog() this.openFilterDiolog()
}, },
closeLeftPanel() { closeLeftPanel() {
debugger
this.show = false this.show = false
// this.beforeDestroy() // this.beforeDestroy()
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论