@@ -150,6 +150,7 @@
// 上传前校检格式和大小
handleBeforeUpload(file) {
+ console.log(file)
// 校检文件类型
if (this.fileType) {
let fileExtension = "";
@@ -174,6 +175,13 @@
return false;
}
+ if (file.name){
+ const isName = file.name;
+ if (isName.indexOf("+") != -1){
+ this.$modal.msgError(`上传文件的文件名中不能包含'+'!`);
+ return false;
+ }
this.$modal.loading("正在上传文件,请稍候...");
this.number++;
return true;