@@ -629,11 +629,14 @@ export default {
this.removeFile();
this.searchForm();
},
- uploadError() {
- this.$notify({
- message: "上传失败",
- type: "error"
- });
+ uploadError(response) {
+ let json = JSON.parse(response.message);
+ if (response.status == 500) {
+ this.$notify({
+ message: json.desc,
+ type: "error"
+ });
+ }
this.fileLoading = false;
//确定上传