|
@@ -215,6 +215,13 @@ export default {
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+ if (fileList.length > 1) {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "每次只能上传一个文件",
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
this.$refs.upload.submit();
|
|
this.$refs.upload.submit();
|
|
},
|
|
},
|
|
uploadSuccess(response) {
|
|
uploadSuccess(response) {
|