From ea66f83d2636ae14fde0caa1fd4f41977447fa15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 19 Aug 2019 16:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/new/Goldsubject.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index 95e13323d..d2ee8d61a 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -416,7 +416,12 @@ class Goldsubject extends Component { // this.props.history.push(this.props.current_user.first_category_url); // } // window.history.go(-1) - this.props.history.goBack() + if(this.state.Whethertocreateanewclassroom===true){ + var subjectids=this.props.match.params.subjectid; + window.location.href=`/paths/${subjectids}` + }else{ + this.props.history.goBack(); + } } onCheckAllChange = (e) => { @@ -589,7 +594,7 @@ class Goldsubject extends Component {