【代码评审】商城:满减送活动的实现

This commit is contained in:
YunaiV
2024-08-23 18:28:37 +08:00
parent 814f9ba9c6
commit a02712ca95
3 changed files with 7 additions and 5 deletions

View File

@ -169,6 +169,7 @@ const getProductScope = async () => {
formData.value.productSpuIds = formData.value.productScopeValues
break
case PromotionProductScopeEnum.CATEGORY.scope:
// TODO @puhui999可以直接 await nextTick() 呀。
await nextTick(() => {
let productCategoryIds = formData.value.productScopeValues as any
if (Array.isArray(productCategoryIds) && productCategoryIds.length > 0) {