feat: 商品编辑

This commit is contained in:
2026-04-28 11:43:12 +08:00
parent 5cfccabcd7
commit 1e4134f8b9
5 changed files with 78 additions and 55 deletions

View File

@@ -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)