更改购物车
This commit is contained in:
@@ -100,6 +100,7 @@ export const useCartStore = defineStore('cart', () => {
|
||||
}, 0);
|
||||
// 向下取整并保留两位小数
|
||||
let result = roundUpToTwoDecimals(total, 'downward')
|
||||
console.log(result)
|
||||
return result;
|
||||
// return Math.floor(total * 100) / 100;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user