From fafccf035243fbd307590766ba7988775a62a4f9 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 29 Apr 2026 16:17:32 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E5=88=87=E6=8D=A2=E6=80=A7=E5=88=AB?= =?UTF-8?q?=E6=B8=85=E7=A9=BA=E9=80=89=E4=B8=AD=E7=9A=84=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SellerDashboard/MyListings/EditDetail/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/SellerDashboard/MyListings/EditDetail/index.vue b/src/views/SellerDashboard/MyListings/EditDetail/index.vue index 9e7a8c45..65ddb6f6 100644 --- a/src/views/SellerDashboard/MyListings/EditDetail/index.vue +++ b/src/views/SellerDashboard/MyListings/EditDetail/index.vue @@ -44,7 +44,7 @@ @update:product-name="currentListing.productName = $event" @update:price="currentListing.price = $event" @update:desc="currentListing.desc = $event" - @update:gender="currentListing.gender = $event" + @update:gender="handleUpdateGender" @update:category="currentListing.category = $event" />
@@ -150,6 +150,13 @@ const currentListing = computed(() => selectList.value[currentIndex.value]) + const handleUpdateGender = (gender: string) => { + if (currentListing.value.gender === gender) return + + currentListing.value.gender = gender + currentListing.value.category = null + } + const previewImageMap = computed(() => ({ sketch: currentListing.value.sketch, mainProductImage: currentListing.value.mainProductImage,