fix: 折叠问题恢复
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user