This commit is contained in:
X1627315083
2023-12-11 11:02:48 +08:00
parent 29d0114f55
commit d851f5e87c
16 changed files with 56 additions and 31 deletions

View File

@@ -66,6 +66,10 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
addGenerateMaterialFils(state,data:any){
let file
let arr
let maxImg = 8
if(data.type_.type2 == 'Sketchboard'){
maxImg = 20
}
if(data.type_.type1 == 'generate'){//判断是generate||library
data.resData.designType = 'Generate'
if(data.type_.type2 == 'Moodboard'){
@@ -94,7 +98,7 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
}
if(file.length == 0){
if(arr.length >= 8){
if(arr.length >= maxImg){
// message.warning(GO.jsContent1)
message.warning(data.jsContent1)
}else{
@@ -110,7 +114,7 @@ const UploadFilesModule : Module<UploadFiles,RootState> = {
}
}
if(str){
if(arr.length >= 8){
if(arr.length >= maxImg){
message.warning(data.jsContent1)
}else{
data.checked = true