From 75669333e3b5ecc6024a8fcf094e6fccbe93180b Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 19 Aug 2022 13:58:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E7=BB=A9=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/test.js | 2 +- src/views/exam/ExamList.vue | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/api/modules/test.js b/src/api/modules/test.js index 1dcbb141..068039fc 100644 --- a/src/api/modules/test.js +++ b/src/api/modules/test.js @@ -51,7 +51,7 @@ const pulish = function(id, publish) { *} */ const exports=function (query){ - return ajax.post('/xboe/m/exam/alone/answer/export',query); + return ajax.post('/xboe/m/exam/alone/answer/export',query,{responseType: 'blob'}); } export default { diff --git a/src/views/exam/ExamList.vue b/src/views/exam/ExamList.vue index 977d30ae..649e7cd7 100644 --- a/src/views/exam/ExamList.vue +++ b/src/views/exam/ExamList.vue @@ -470,6 +470,7 @@