From a8372a4e96c2cf922eb61e1caa9142b780421eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 30 Aug 2019 12:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/coursesPublic/SelectSetting.js | 5 +++++ .../react/src/modules/courses/coursesPublic/sendResource.js | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/public/react/src/modules/courses/coursesPublic/SelectSetting.js b/public/react/src/modules/courses/coursesPublic/SelectSetting.js index b3c85838d..3183c859f 100644 --- a/public/react/src/modules/courses/coursesPublic/SelectSetting.js +++ b/public/react/src/modules/courses/coursesPublic/SelectSetting.js @@ -326,6 +326,11 @@ class Selectsetting extends Component{ this.setState({ fileListtype:false, }) + }else{ + this.setState({ + fileListtype:false, + fileList:[] + }) } // const url = `/attachments/${file.response ? file.response.id : file.uid}.json` diff --git a/public/react/src/modules/courses/coursesPublic/sendResource.js b/public/react/src/modules/courses/coursesPublic/sendResource.js index 2b7b63e99..1a46d9cf9 100644 --- a/public/react/src/modules/courses/coursesPublic/sendResource.js +++ b/public/react/src/modules/courses/coursesPublic/sendResource.js @@ -154,6 +154,11 @@ class Sendresource extends Component{ this.setState({ fileListtype:false, }) + }else{ + this.setState({ + fileListtype:false, + fileList:[] + }) } }