修复了一些小错误
This commit is contained in:
@@ -73,15 +73,13 @@ export function provenimg(file: any): boolean | void{
|
||||
message.error(lan.$t('zuida') + "2MB")
|
||||
return false;
|
||||
}
|
||||
let istype = false
|
||||
for(const i in type){
|
||||
if(type[i] == ntype){
|
||||
istype = true
|
||||
return true
|
||||
}
|
||||
}
|
||||
message.error(lan.$t("leixingcuowu"))
|
||||
console.log(istype)
|
||||
return istype;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user