1.优化后台样式
2.改版并对接新版数据统计页面
This commit is contained in:
@@ -423,7 +423,7 @@ export function isPcBowser() {
|
||||
* decimal你保留的几位,默认保留小数后两位
|
||||
* isInt 是否保留0
|
||||
*/
|
||||
export function formatDecimal(num, decimal = 2, isInt = false) {
|
||||
export function formatDecimal(num = 0, decimal = 2, isInt = false) {
|
||||
num = num.toFixed(3).toString();
|
||||
const index = num.indexOf(".");
|
||||
if (index !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user