improve: Instance Activity Chart (#1150)

* improve: Instance Activity Chart

* i18n
This commit is contained in:
pa
2025-02-24 00:28:07 +09:00
committed by GitHub
parent 246e02e314
commit dfc0023deb
5 changed files with 89 additions and 58 deletions

View File

@@ -1,3 +1,5 @@
let echarts = null;
export default {
removeFromArray(array, item) {
var { length } = array;
@@ -319,5 +321,15 @@ export default {
return 0;
});
return node;
},
// lazy load echarts
loadEcharts() {
if (echarts) {
return Promise.resolve(echarts);
}
return import('echarts').then((module) => {
echarts = module;
return echarts;
});
}
};