fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user