From 2dc98e5dd8b8b8bacb6262b0cd6b9a815bf9c014 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 29 Apr 2026 15:07:43 +0800 Subject: [PATCH] bugfix: productList --- src/views/SellerDashboard/MyListings/EditDetail/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/SellerDashboard/MyListings/EditDetail/index.vue b/src/views/SellerDashboard/MyListings/EditDetail/index.vue index 0c60b841..d4cd9d2f 100644 --- a/src/views/SellerDashboard/MyListings/EditDetail/index.vue +++ b/src/views/SellerDashboard/MyListings/EditDetail/index.vue @@ -215,7 +215,7 @@ return } - if (image.category === "main_product" || image.category === "product") { + if (image.category === "product") { listing.prodImageList.push({ url: imageUrl, selected: getImageSelected(image.isSelected) @@ -357,7 +357,7 @@ const paramsList = [] selectList.value.forEach((item: ListingItem) => { const params = { - id: null, + id: itemId.value, title: item.productName, description: item.desc, price: item.price, @@ -420,7 +420,6 @@ const handleFetchItemDetial = (list) => { fetchSketchDetail(list).then((res) => { - console.log(res) res.forEach((item, index) => { if (!selectList.value[index]) return selectList.value[index].sketchList = item.clothes.map((el) => ({ url: el })) @@ -443,7 +442,7 @@ onMounted(() => { const data = history.state if (data?.type === "edit") { - itemId.value = history.state?.id || "" + itemId.value = history.state?.id handleGetDetailById() } else { const designItemIds = history.state?.designItemIds || []