NEZ-2322 fix:chartUnit为none时,起始数量显示有误
This commit is contained in:
@@ -445,6 +445,9 @@ function timeCompute (value, unit, dot = 0) {
|
||||
function keepDoubleNumber (num) {
|
||||
const decimal = num.toString()
|
||||
let returnNum = ''
|
||||
if (num == 0) {
|
||||
return 0
|
||||
}
|
||||
const arr = decimal.split('.')
|
||||
if (arr.length > 1) {
|
||||
returnNum = arr[0] + '.'
|
||||
|
||||
Reference in New Issue
Block a user