Merge branch 'zcwy_0726_download' into dev0515

This commit is contained in:
nisen
2024-08-01 08:59:01 +08:00

View File

@@ -547,12 +547,10 @@ export default {
if (!(response.headers['content-type']).startsWith('application/json')) {
this.resolveBlob(response, 'application/zip', `${params.courseName}【作业】`);
} else {
console.log(response,'response')
const reader = new FileReader();
reader.onload = function(e) {
reader.onload = (e) => {
const errorData = JSON.parse(e.target.result)
console.log(errorData.result,'result')
const message = errorData.result
this.$message.error(message)
this.$message.error(errorData.result)
};
reader.readAsText(response.data);