fix:修改问题
1 panel图表报错 toFixed is not a function
This commit is contained in:
@@ -317,7 +317,7 @@ function timeCompute(value,unit,dot=0){
|
|||||||
}
|
}
|
||||||
let quotient = time / minUnit.ascii;
|
let quotient = time / minUnit.ascii;
|
||||||
if(quotient < 1){
|
if(quotient < 1){
|
||||||
return `${time.toFixed(dot)} ${minUnit.unit}`;
|
return `${Number(time).toFixed(dot)} ${minUnit.unit}`;
|
||||||
}else{
|
}else{
|
||||||
minUnit = units[++i];
|
minUnit = units[++i];
|
||||||
return result(quotient,minUnit);
|
return result(quotient,minUnit);
|
||||||
|
|||||||
Reference in New Issue
Block a user