From 8498e5cc7c8e5b294dde9a2cbd3c3a1dbb647f58 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Fri, 15 Sep 2023 17:31:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=96=E8=BE=91=E6=97=B6=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=B0=E6=98=8E=E7=BB=86=E8=A1=A8=E4=BC=9A=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/frontend/src/views/chart/view/ChartEdit.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/frontend/src/views/chart/view/ChartEdit.vue b/core/frontend/src/views/chart/view/ChartEdit.vue index aac8ac29e4..f3562bb26e 100644 --- a/core/frontend/src/views/chart/view/ChartEdit.vue +++ b/core/frontend/src/views/chart/view/ChartEdit.vue @@ -2040,9 +2040,6 @@ export default { return } this.view.isPlugin = this.$refs['cu-chart-type'] && this.$refs['cu-chart-type'].currentIsPlugin(newVal.type, newVal.render) - - this.setChartDefaultOptions() - this.calcData(true, 'chart', true, newVal.type !== oldVal.type, newVal.render !== oldVal.render) } }, created() { @@ -3310,10 +3307,12 @@ export default { this.$store.commit('recordViewEdit', { viewId: this.param.id, hasEdit: status }) }, changeChartRender() { - // Do Nothing + this.setChartDefaultOptions() + this.calcData(true, 'chart', true, false, true) }, changeChartType() { - // Do Nothing + this.setChartDefaultOptions() + this.calcData(true, 'chart', true, true) }, setChartDefaultOptions() {