修复选项

This commit is contained in:
huangdeliang
2021-02-22 19:45:33 +08:00
parent 3f620ed894
commit de4e43af4e
4 changed files with 11 additions and 7 deletions

View File

@ -138,7 +138,9 @@ export default {
watch: {
data(newVal, oldVal) {
if (newVal) {
this.updateChart(newVal);
this.$nextTick(() => {
this.updateChart(newVal);
});
}
},
},

View File

@ -174,7 +174,9 @@ export default {
watch: {
data(newVal, oldVal) {
if (newVal) {
this.updateChart(newVal[0]);
this.$nextTick(() => {
this.updateChart(newVal[0]);
});
}
},
},