diff --git a/src/router/index.ts b/src/router/index.ts index b7e7601d..2d558328 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -283,7 +283,6 @@ const routes: Array = [ name: "myListingsSelectItem", meta: { enter: "all", - cache: true, sellerHeaderTitleKey: "Seller.SelectCollection", sellerBreadcrumbs: [ myListingsBreadcrumb, diff --git a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue index bfb90480..f0c8cfae 100644 --- a/src/views/SellerDashboard/MyListings/createSelectItem/index.vue +++ b/src/views/SellerDashboard/MyListings/createSelectItem/index.vue @@ -147,9 +147,10 @@ onMounted(()=>{ // 开始监听 if(resizeObserver)resizeObserver.observe(listingsBoxRef.value) }) + chooseList.value = [] + getCollectionDetail() }) onActivated(()=>{ - getCollectionDetail() }) onUnmounted(()=>{ }) @@ -370,7 +371,7 @@ const {} = toRefs(data); } > img{ height: 100%; - object-fit: cover; + object-fit: contain; } &.active{ border: 1.5px solid #000; diff --git a/src/views/SellerDashboard/MyListings/main/content.vue b/src/views/SellerDashboard/MyListings/main/content.vue index d6b44f4d..486b18fa 100644 --- a/src/views/SellerDashboard/MyListings/main/content.vue +++ b/src/views/SellerDashboard/MyListings/main/content.vue @@ -157,7 +157,7 @@ const draftListing = async (item: any)=>{ list2.value.unshift(item) list.value = list.value.filter((v: any)=>v.id != item.id) }) - message.success(t('Seller.draftMessage')) + message.success($t('Seller.draftMessage')) } const publishListing = async (item: any)=>{ @@ -165,7 +165,7 @@ const publishListing = async (item: any)=>{ list.value.unshift(item) list2.value = list2.value.filter((v: any)=>v.id != item.id) }) - message.success(t('Seller.publishMessage')) + message.success($t('Seller.publishMessage')) } const editListing = (item: any)=>{