data() {
return {
waterPicture: {
data: [],
shape: "roundRect",
},
},
}
渲染时
screenData() {
visual.getStatistics().then((data) => {
this.waterPicture.data = [data.accountCoin];[] 转成数组
this.waterPicture = { ...this.waterPicture }; //要这样写
});