- 1、在dialog中使用open方法
- 2、在定時函數(shù)setTimeout中執(zhí)行方法
// dialog的open方法
openChargeRate() {
const _self = this;
setTimeout(() => {
// 執(zhí)行echarts畫圖方法
_self.drawLine();
}, 0);
}
// dialog的open方法
openChargeRate() {
const _self = this;
setTimeout(() => {
// 執(zhí)行echarts畫圖方法
_self.drawLine();
}, 0);
}