bugfix: 保存草稿同样要填写必填项
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user