Merge branch 'zcwy_0726_download' into dev0515

This commit is contained in:
nisen
2024-07-31 19:04:17 +08:00

View File

@@ -549,9 +549,8 @@ export default {
} else {
const reader = new FileReader();
reader.onload = function(e) {
console.log(e,'eeeeeee')
const errorData = JSON.parse(e.target.result);
this.$message.error(errorData.message);
this.$message.error(errorData.result);
};
reader.readAsText(response.data);
}
@@ -559,13 +558,6 @@ export default {
}).catch((error) => {
// 错误处理
console.log(error);
const reader = new FileReader();
reader.onload = function(e) {
console.log(e,'eeeeeee')
const errorData = JSON.parse(e.target.result);
this.$message.error(errorData.message);
};
reader.readAsText(error);
this.$message.error(error.data ? error.data.message : error.toString());
});
},