mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
测试
This commit is contained in:
@@ -537,12 +537,10 @@ export default {
|
|||||||
if (!(response.headers['content-type']).startsWith('application/json')) {
|
if (!(response.headers['content-type']).startsWith('application/json')) {
|
||||||
this.resolveBlob(response, 'application/zip', `${params.courseName}【作业】`);
|
this.resolveBlob(response, 'application/zip', `${params.courseName}【作业】`);
|
||||||
} else {
|
} else {
|
||||||
|
console.log(response,'response')
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.onload = function(e) {
|
reader.onload = (e) => {
|
||||||
const errorData = JSON.parse(e.target.result)
|
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)
|
this.$message.error(errorData.result)
|
||||||
};
|
};
|
||||||
reader.readAsText(response.data);
|
reader.readAsText(response.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user