shish 4 years ago
parent
commit
0eb6bfdb63
2 changed files with 2 additions and 2 deletions
  1. 1 1
      ghsApp/src/utils/util.js
  2. 1 1
      hdApp/src/utils/util.js

+ 1 - 1
ghsApp/src/utils/util.js

@@ -43,7 +43,7 @@ const numberFormat = (number, type) => {
 		let num = (number / 10000 + "").split(".");
 		return `${num[0]}.${("" + num[1]).slice(0, 1)} 万`;
 	} else {
-		return parseFloat(number)
+		return parseFloat(Number(number))
 	}
 };
 // 截取图片上传字符串

+ 1 - 1
hdApp/src/utils/util.js

@@ -43,7 +43,7 @@ const numberFormat = (number, type) => {
 		let num = (number / 10000 + "").split(".");
 		return `${num[0]}.${("" + num[1]).slice(0, 1)} 万`;
 	} else {
-		return number;
+		return parseFloat(Number(number));
 	}
 };
 // 截取图片上传字符串