From 1282efcd5ced72dac40fcd285d547c68002bf3e4 Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Wed, 4 Sep 2019 17:22:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AD=A6=E7=94=9F+=E8=AE=A8?= =?UTF-8?q?=E8=AE=BA=E5=8C=BA=E7=9A=84=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/boards/index.js | 5 +---- .../src/modules/courses/members/modal/AddStudentModal.js | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/courses/boards/index.js b/public/react/src/modules/courses/boards/index.js index a4a3ed632..6a563762b 100644 --- a/public/react/src/modules/courses/boards/index.js +++ b/public/react/src/modules/courses/boards/index.js @@ -51,10 +51,7 @@ class Boards extends Component{ const sort_type = this.state.sort_type // page_size const url = `/boards/${bid}/messages.json?page_size=15&search=${_serachText || ''}&page=${_page}&sort=0&sort_type=${sort_type}` - axios.get(url, { - - }) - .then((response) => { + axios.get(encodeURI(url)).then((response) => { if (response.data.status == 0 && response.data.data) { let _newBoards = response.data.data.messages // if (_page > 1) { diff --git a/public/react/src/modules/courses/members/modal/AddStudentModal.js b/public/react/src/modules/courses/members/modal/AddStudentModal.js index cf7583a51..9113ba6ab 100644 --- a/public/react/src/modules/courses/members/modal/AddStudentModal.js +++ b/public/react/src/modules/courses/members/modal/AddStudentModal.js @@ -80,8 +80,9 @@ class AddStudentModal extends Component{ } setVisible = (visible) => { if (visible) { - this.setState({school_name: this.props.user.user_school}) - this.fetchMemberList() + this.setState({school_name: this.props.user.user_school},()=>{ + this.fetchMemberList(); + }) this.fetchOptions() } this.refs.modalWrapper.setVisible(visible)