From 485c4019436ba7745d10332a214f978817e1188d Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 1 Aug 2024 08:57:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Study/manager.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Study/manager.vue b/src/components/Study/manager.vue index 79483685..332053d0 100644 --- a/src/components/Study/manager.vue +++ b/src/components/Study/manager.vue @@ -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);