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 })