mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
测试
This commit is contained in:
@@ -537,12 +537,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);
|
||||
|
||||
Reference in New Issue
Block a user