提交 9bb24a13 authored 作者: wangjiahao's avatar wangjiahao

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

上级 9cf6919b
......@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论