fix: 【仪表板】编辑状态每次点击图表都会导致图表进行刷新

This commit is contained in:
ulleo 2023-10-31 18:05:16 +08:00
parent 4f5e3df611
commit 1d51948462

View File

@ -2106,8 +2106,10 @@ export default {
x.sort = 'none'
})
}
this.setChartDefaultOptions()
this.calcData(true, 'chart', true, newVal.type !== oldVal.type, newVal.render !== oldVal.render)
if (oldVal.id !== 'echart') {
this.setChartDefaultOptions()
this.calcData(true, 'chart', true, newVal.type !== oldVal.type, newVal.render !== oldVal.render)
}
}
},
created() {