fix: 折叠问题恢复

This commit is contained in:
@changcode
2021-10-20 14:40:53 +08:00
parent 4c8bb83fea
commit e7b7f5ef8f

View File

@@ -301,19 +301,13 @@ export default {
watch: { watch: {
dropdownMenuShow (n) { dropdownMenuShow (n) {
this.$emit('dropmenu-change', n) this.$emit('dropmenu-change', n)
},
chartData: {
deep: true,
immediate: true,
handler (n) {
if (n.param) {
this.showList = !n.param.collapse
}
}
} }
}, },
mounted () { mounted () {
this.firstLoad = false this.firstLoad = false
if (this.chartData.param) {
this.showList = !this.chartData.param.collapse
}
}, },
beforeDestroy () { beforeDestroy () {
this.clearChart() this.clearChart()