From d42a1bef8d94ed89cf62d0bdd1185e9521215eff Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Wed, 29 Apr 2026 14:49:58 +0800 Subject: [PATCH] fix --- .../MyListings/createSelect/historyList.vue | 7 ++----- .../MyListings/createSelectItem/index.vue | 6 +++++- .../MyListings/main/content.vue | 21 ------------------- 3 files changed, 7 insertions(+), 27 deletions(-) diff --git a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue index 8452f7b6..2948afcd 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue @@ -58,7 +58,7 @@ defineExpose({getCreateList})
-
+
@@ -131,12 +131,9 @@ defineExpose({getCreateList}) background-color: #fff; &.null{ background-color: transparent; - > img{ - object-fit: contain; - } } > img{ - object-fit: cover; + object-fit: contain; height: 100%; width: 100%; } diff --git a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue index 78653341..ef44a575 100644 --- a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue @@ -36,7 +36,11 @@ const list = ref([ const showList = ref([]) const chooseList = ref([]) const chooseItem = (item:any)=>{ - chooseList.value.push(item) + if(chooseList.value.findIndex((i:any)=>i.designItemId == item.designItemId) != -1){ + chooseList.value.splice(chooseList.value.findIndex((i:any)=>i.designItemId == item.designItemId),1) + }else{ + chooseList.value.push(item) + } } const next = ()=>{ diff --git a/src/views/SellerDashboard/MyListings/main/content.vue b/src/views/SellerDashboard/MyListings/main/content.vue index 4e1dcfc5..4226a8a1 100644 --- a/src/views/SellerDashboard/MyListings/main/content.vue +++ b/src/views/SellerDashboard/MyListings/main/content.vue @@ -241,27 +241,6 @@ const { showDrafts } = toRefs(data);
-
- - - -