From c63f115d06c13bb5c60e10f5b65d934c91e25cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 4 Sep 2019 18:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/poll/PollNewQuestbank.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) } })