File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
src/components/DiyEditor/components/mobile/PromotionCombination Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ import {fenToYuan} from "@/utils";
123
123
/** 拼团卡片 */
124
124
defineOptions ({name: ' PromotionCombination' })
125
125
// 定义属性
126
- // 定义属性
127
126
const props = defineProps <{ property: PromotionCombinationProperty }>();
128
127
// 商品列表
129
128
const spuList = ref <ProductSpuApi .Spu []>([]);
@@ -150,13 +149,12 @@ watch(
150
149
.map (activity => activity .spuId )
151
150
.filter ((spuId ): spuId is number => typeof spuId === ' number' );
152
151
153
- // 如果有有效的 spuId,调用 API 获取详细信息
152
+ // 如果存在有效的 spuId,调用 API 获取详细信息
154
153
if (spuIdList .value .length > 0 ) {
155
154
spuList .value = await ProductSpuApi .getSpuDetailList (spuIdList .value );
156
155
} else {
157
156
console .warn (' 没有用于获取详细信息的有效 spuId。' );
158
157
}
159
-
160
158
// 更新 SPU 的最低价格
161
159
combinationActivityList .value .forEach (activity => {
162
160
activity .products .forEach (product => {
You can’t perform that action at this time.
0 commit comments