fix: 🐛 修改格式化金额可能会出现的问题

This commit is contained in:
学习很差啦
2022-09-30 18:36:21 +08:00
parent d101cd1b6a
commit 1225a41de4
10 changed files with 11 additions and 10 deletions

View File

@@ -460,7 +460,7 @@ export default {
if (typeof val == "undefined") {
return val;
}
return val.toFixed(2).split(".");
return parseInt(val).toFixed(2).split(".");
},
//发票回调 选择发票之后刷新购物车
async callbackInvoice(val) {