Merge pull request #6457 from ulleo/dev

fix: 【仪表板】编辑状态每次点击图表都会导致图表进行刷新
This commit is contained in:
ulleo 2023-10-31 18:05:42 +08:00 committed by GitHub
commit ab81d3b7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {