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

This commit is contained in:
wangjiahao 2021-05-21 11:04:41 +08:00
parent 9721a406dc
commit 7e6749e9fb

View File

@ -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()
}