perf: echarts性能优化

This commit is contained in:
chenjinsong
2020-09-25 20:17:29 +08:00
parent c968c4cefc
commit 47a5fd18f8
5 changed files with 28 additions and 70 deletions

View File

@@ -649,9 +649,9 @@ export default {
while(value<1){
pow++;
value=value*10;
console.log(value);
//console.log(value);
}
console.log( Math.floor(value+1)/Math.pow(10,pow));
//console.log( Math.floor(value+1)/Math.pow(10,pow));
return Math.floor(value+1)/Math.pow(10,pow);
}
if(type ==='Time'){