https://www.jianshu.com/p/e72bb870b4ed
1、在dialog中使用open方法
2、在定时函数setTimeout中执行方法
// dialog的open方法
openChargeRate() {
const _self = this;
setTimeout(() => {
// 执行echarts画图方法
_self.drawLine();
}, 0);
}
https://www.jianshu.com/p/e72bb870b4ed
1、在dialog中使用open方法
2、在定时函数setTimeout中执行方法
// dialog的open方法
openChargeRate() {
const _self = this;
setTimeout(() => {
// 执行echarts画图方法
_self.drawLine();
}, 0);
}