From 2cbf3f80304bbc4ff49189b69c2ff9f7dbbc6e3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 6 Jul 2019 13:06:48 +0800 Subject: [PATCH] b --- public/react/src/modules/courses/Resource/Fileslistitem.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js index 3e1e21810..d068e86df 100644 --- a/public/react/src/modules/courses/Resource/Fileslistitem.js +++ b/public/react/src/modules/courses/Resource/Fileslistitem.js @@ -35,10 +35,10 @@ class Fileslistitem extends Component{ params:{ course_id:coursesId }, - }).then((response)=>{ + }).then((result)=>{ if(result.data.attachment_histories.length===0){ - response.blob().then(blob => { + result.blob().then(blob => { const aLink = document.createElement('a'); document.body.appendChild(aLink); aLink.style.display='none';