From 6bf5c693610ce3f05888856c31114d8864ef4469 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 31 Oct 2024 15:05:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=93=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E7=BB=91=E5=AE=9A=E8=87=B3=E8=80=97=E6=9D=90=E8=BF=98?= =?UTF-8?q?=E6=98=AF=E8=A7=84=E6=A0=BC=E9=BB=98=E8=AE=A4=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageProduct/add-Product/components/edit-haocai.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pageProduct/add-Product/components/edit-haocai.vue b/pageProduct/add-Product/components/edit-haocai.vue index 2e6b42f..5232f6f 100644 --- a/pageProduct/add-Product/components/edit-haocai.vue +++ b/pageProduct/add-Product/components/edit-haocai.vue @@ -298,9 +298,11 @@ const isSku = computed(() => { return props.goods.typeEnum == 'sku' }) - let isBindGuige = ref(isSku.value) + let isBindGuige = ref(false) watch(() => props.goods.typeEnum, (newval) => { - isBindGuige.value = isSku.value + if(!newval){ + isBindGuige.value = false + } }) @@ -385,7 +387,6 @@ $haocaiMap[item.id] = item } haoCaiList.value = res.content - }) tbShopCurrencyGet({ page: 0, @@ -400,6 +401,8 @@ } onMounted(() => { init() + const firstItem= props.goods.conInfos[0] + isBindGuige.value=firstItem?(firstItem.productSkuId==0?false:true):false })