bugfix: 保存草稿同样要填写必填项

This commit is contained in:
2026-04-29 14:47:23 +08:00
parent 56825fcbb1
commit 5d184bf1f9
6 changed files with 374 additions and 369 deletions

View File

@@ -267,7 +267,7 @@
const handleClickCrop = (data: any, type: string, paramThree: any = []) => {
// 处理来自TopImageSection的调用: (data, type, list)
// 处理来自ApparelSketchList的调用: (data, type, index)
const index = typeof paramThree === 'number' ? paramThree : undefined
const index = typeof paramThree === "number" ? paramThree : undefined
const list = Array.isArray(paramThree) ? paramThree : []
// console.log(data, type)
@@ -376,9 +376,9 @@
})
if (item.mainProductImage) {
params.images.push({
category: 'main_product',
category: "main_product",
imageUrl: item.mainProductImage,
isSeleted:1
isSeleted: 1
})
}
item.prodImageList.forEach((item) => {
@@ -404,7 +404,7 @@
message.error("请先完成封面制作")
return
}
if (status === "publish" && !validatePublishRequired()) return
if (!validatePublishRequired()) return
await handleSaveForm(status)
if (status === "draft") {