feat: 商品编辑
This commit is contained in:
@@ -280,7 +280,7 @@
|
||||
price: string
|
||||
desc: string
|
||||
gender: string
|
||||
category: string[]
|
||||
category: string[] | null
|
||||
prodImageList: Array<{
|
||||
url: string
|
||||
selected?: boolean
|
||||
@@ -491,6 +491,10 @@
|
||||
fetchUpdateListing(paramsList)
|
||||
}
|
||||
const handleClickMenu = async (status: StatusType) => {
|
||||
if (status === "draft" && !selectList.value[currentIndex.value].cover) {
|
||||
message.error("请先完成封面制作")
|
||||
return
|
||||
}
|
||||
if (status === "publish" && !validatePublishRequired()) return
|
||||
|
||||
await handleSaveForm(status)
|
||||
|
||||
Reference in New Issue
Block a user