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)