fix: 完善拼团活动 CRUD

This commit is contained in:
puhui999
2023-07-14 17:35:35 +08:00
parent 3fd9f1b43e
commit dc39ad0cd1
5 changed files with 89 additions and 32 deletions

View File

@ -87,7 +87,6 @@ const selectSpu = (spuId: number, skuIds: number[]) => {
}
/**
* 获取 SPU 详情
* @param spuIds
*/
const getSpuDetails = async (
spuId: number,
@ -113,7 +112,7 @@ const getSpuDetails = async (
if (typeof products !== 'undefined') {
const product = products.find((item) => item.skuId === sku.id)
if (product) {
// 元转
// 分转元
product.seckillPrice = formatToFraction(product.seckillPrice)
}
config = product || config