From 9bb24a13c2729e5828926b2177df8da5503a2b86 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 23 Jun 2021 16:17:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=20=E5=9B=BE=E5=BD=A2=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E4=B8=8D=E8=81=94=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/panel/SubjectSetting/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/panel/SubjectSetting/index.vue b/frontend/src/views/panel/SubjectSetting/index.vue index fad042a16c..30661989fc 100644 --- a/frontend/src/views/panel/SubjectSetting/index.vue +++ b/frontend/src/views/panel/SubjectSetting/index.vue @@ -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)