From d6fe4bee4094f0c32000cbd1e285151491c2e553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 5 Jul 2019 15:45:58 +0800 Subject: [PATCH] b --- public/react/src/modules/courses/shixunHomework/Listofworks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 17b9179d4..09516a5f9 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -1404,6 +1404,7 @@ class Listofworks extends Component { const name = decodeURI(response.headers['content-disposition'].split('=')[1]) console.log(response.headers['content-disposition'].split('=')[1]); console.log(name); + console.log(decodeURIComponent(response.headers['content-disposition'].split('=')[1])); downloadElement.href = href downloadElement.download = name document.body.appendChild(downloadElement)