diff --git a/src/lang/cn.ts b/src/lang/cn.ts index e4adbdcf..55c4cb61 100644 --- a/src/lang/cn.ts +++ b/src/lang/cn.ts @@ -1734,7 +1734,7 @@ export default { step3Info: '详情信息已从AiDA自动填充,请检查并补充任何缺失的信息。', step4Title: '上架发布', step4Info: '发布后,你的设计将立即在市场上线。', - showAgain: '不再提示', + showAgain: '7天内不再提示', GetStarted: '开始体验', }, SellerListEdit: { diff --git a/src/lang/en.ts b/src/lang/en.ts index edde67ac..b134e870 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -1785,7 +1785,7 @@ export default { step3Info: 'Details are pre-filled from AiDA. Review and complete any missing information.', step4Title: 'Listing Live', step4Info: 'Publish and your design goes live on the marketplace.', - showAgain: 'Don’t show me again', + showAgain: 'Don’t show this again for 7 days', GetStarted: 'Get Started', }, SellerListEdit:{ diff --git a/src/views/SellerDashboard/MyListings/EditDetail/index.vue b/src/views/SellerDashboard/MyListings/EditDetail/index.vue index 82aa514d..a97c9550 100644 --- a/src/views/SellerDashboard/MyListings/EditDetail/index.vue +++ b/src/views/SellerDashboard/MyListings/EditDetail/index.vue @@ -594,13 +594,18 @@ if (!validatePublishRequired()) return await handleSaveForm(status) + + // 从 sessionStorage 获取参数 + const paramsStr = sessionStorage.getItem('listingEditParams') + const params = paramsStr ? JSON.parse(paramsStr) : {} + if (status === "draft") { ROUTER.push({ name: "Status", params: { status: "draft" }, state: { - type: history.state?.type, - collectionId: history.state?.collectionId + type: params.type, + collectionId: params.collectionId } }) } else if (status === "publish") { @@ -608,8 +613,8 @@ name: "Status", params: { status: "publish" }, state: { - type: history.state?.type, - collectionId: history.state?.collectionId + type: params.type, + collectionId: params.collectionId } }) } @@ -642,12 +647,15 @@ } onMounted(() => { - const data = history.state + // 从 sessionStorage 获取参数 + const paramsStr = sessionStorage.getItem('listingEditParams') + const data = paramsStr ? JSON.parse(paramsStr) : {} + if (data?.type === "edit") { - itemId.value = history.state?.id + itemId.value = data?.id handleGetDetailById() } else { - const designItemIds = history.state?.designItemIds || [] + const designItemIds = data?.designItemIds || [] if (!designItemIds.length) return @@ -659,6 +667,7 @@ // console.log("list", list.length, list) handleFetchItemDetial(list) } + }) diff --git a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue index bfc88ee9..837a1238 100644 --- a/src/views/SellerDashboard/MyListings/createSelect/historyList.vue +++ b/src/views/SellerDashboard/MyListings/createSelect/historyList.vue @@ -55,26 +55,28 @@ defineExpose({getCreateList})