perf: echarts性能优化

This commit is contained in:
chenjinsong
2020-09-25 11:48:54 +08:00
parent 733b2c45da
commit 19df95c6be
4 changed files with 99 additions and 47 deletions

View File

@@ -15,3 +15,13 @@ export function getUUID(){
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}
const chartCache = {};
export function getChart(key) {
return chartCache[`chart${key}`];
}
export function setChart(key, value) {
chartCache[`chart${key}`] = value;
}