diff --git a/src/pages/shop/components/product-sku.vue b/src/pages/shop/components/product-sku.vue index b990164..2b88015 100644 --- a/src/pages/shop/components/product-sku.vue +++ b/src/pages/shop/components/product-sku.vue @@ -110,6 +110,9 @@ watch( // 获取商品详情 const { data } = await shopApi.getSupermarketSpuDetail({ id: props.productData.productId }) state.goodsDetail = data + if (data.skuList.length > 0) { + state.selectedSku = state.goodsDetail.skuList[0] + } } }, )