【代码优化】代码格式化

This commit is contained in:
卢越
2024-09-05 15:15:19 +08:00
parent 4870231b61
commit 4f941df55c
2 changed files with 2 additions and 1 deletions

View File

@ -165,6 +165,7 @@ watch(
activity.products.forEach((product) => {
const spu = spuList.value.find((spu) => spu.id === product.spuId)
if (spu) {
// 哪个最便宜就赋值哪个
spu.price = Math.min(product.combinationPrice || Infinity, spu.price || Infinity)
}
})