fix: 修复主题变更 图形属性不联动问题

This commit is contained in:
wangjiahao 2021-06-23 16:17:37 +08:00
parent 9cf6919b2e
commit 9bb24a13c2

View File

@ -60,8 +60,7 @@ export default {
activeNames: ['panel'],
chart: null,
tableChart: null,
collapseShow: true,
tableChartShow: true
collapseShow: true
}
},
computed: mapState([
@ -74,7 +73,10 @@ export default {
mounted() {
bus.$on('onSubjectChange', () => {
this.collapseShow = false
this.$nextTick(() => (this.collapseShow = true))
this.$nextTick(() => {
this.init()
this.collapseShow = true
})
})
},
created() {
@ -100,8 +102,6 @@ export default {
// table color view
this.tableChart = deepCopy(this.chart)
this.tableChart.customAttr.color = this.tableChart.customAttr.tableColor
this.tableChartShow = false
this.$nextTick(() => (this.tableChartShow = true))
},
handleChange(val) {
// console.log(val)