mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 09:13:50 +02:00
improve: Instance Activity Chart (#1150)
* improve: Instance Activity Chart * i18n
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user