diff --git a/public/react/src/modules/courses/poll/PollNewQuestbank.js b/public/react/src/modules/courses/poll/PollNewQuestbank.js index 04846d836..e7d8bbd3b 100644 --- a/public/react/src/modules/courses/poll/PollNewQuestbank.js +++ b/public/react/src/modules/courses/poll/PollNewQuestbank.js @@ -2110,6 +2110,7 @@ class PollNewQuestbank extends Component { axios.put(url, { opr: "up", }).then((result) => { + debugger try { if(result){ if(result.data){ @@ -2128,9 +2129,11 @@ class PollNewQuestbank extends Component { this.props.showNotification(`上移失败`); } } + }else { + this.props.showNotification(`上移失败`); } } catch (e) { - // console.log("上移题目成功 错误") + this.props.showNotification(`上移失败`); console.log(e) } @@ -2159,10 +2162,12 @@ class PollNewQuestbank extends Component { }else { this.props.showNotification(`下移失败`); } + }else { + this.props.showNotification(`上移失败`); } } } catch (e) { - // console.log("下移题目成功 错误") + this.props.showNotification(`上移失败`); console.log(e) } })