商品已完成优化
This commit is contained in:
@@ -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, '商品信息加载失败'))
|
||||
|
||||
Reference in New Issue
Block a user