更改购物车

This commit is contained in:
wwz
2025-03-25 10:05:16 +08:00
parent 429336c736
commit 1169e300df
8 changed files with 47 additions and 29 deletions

View File

@@ -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;
});