商品已完成优化

This commit is contained in:
yml2213
2026-06-27 23:01:03 +08:00
parent fed7d6af71
commit 21aabd77f1
12 changed files with 148 additions and 10 deletions
@@ -190,6 +190,11 @@ export function usePublishForm(options: UsePublishFormOptions) {
loading.value = true
try {
const listing = await fetchSellerListing(editListingID.value)
if (listing.status === 'completed') {
options.notifyError('该商品订单已完成,不能再次编辑')
await router.push(options.submitSuccessPath)
return
}
applyListingToForm(listing)
} catch (error) {
options.notifyError(readError(error, '商品信息加载失败'))