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