From 4259d9efe5287c21b6b0592022b8c11a824a23f1 Mon Sep 17 00:00:00 2001 From: ctw <> Date: Tue, 14 Jan 2025 10:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E5=B8=82=E5=95=86=E5=93=81sku?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=E7=AC=AC=E4=B8=80=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/components/product-sku.vue | 3 +++ 1 file changed, 3 insertions(+) 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] + } } }, )