From 5eccfa52dc39d6a45303916026e27c52d36a4fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 10 Mar 2020 21:56:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/Video/MoveBox.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/Video/MoveBox.js b/public/react/src/modules/courses/Video/MoveBox.js index 44cf097bd..bb68eff7b 100644 --- a/public/react/src/modules/courses/Video/MoveBox.js +++ b/public/react/src/modules/courses/Video/MoveBox.js @@ -53,12 +53,21 @@ class MoveBox extends Component{ video_ids:[id], new_category_id:selectSubId }).then(result=>{ + if(result){ + const { setMoveVisible , successFunc , updataleftNavfun} = this.props; updataleftNavfun && updataleftNavfun(); setMoveVisible && setMoveVisible(false); successFunc && successFunc(); - } + + try { + this.props.showNotification(result.data.message); + }catch (e) { + + } + + } }).catch(error=>{ console.log(error); }) @@ -69,7 +78,7 @@ class MoveBox extends Component{ const { data , selectSubId } = this.state; let list = data && data.course_second_categories && data.course_second_categories.length>0?data.course_second_categories:undefined; - + return(