From 7db68852495138413273cd8b11d4c7cd403b3657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 22 Aug 2019 18:04:43 +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 --- .../src/modules/courses/coursesDetail/CoursesBanner.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 1a8442d7e..25e85dcf4 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -49,7 +49,8 @@ class CoursesBanner extends Component { is_guide:false, excellent:false,//是否是精品课堂 yslJointhe:false, - mydisplay:false + mydisplay:false, + yslJointhes:false, } } @@ -62,6 +63,7 @@ class CoursesBanner extends Component { if (response && response.data.status === 410) { this.setState({ yslJointhe:true, + yslJointhes:true }) } @@ -405,6 +407,9 @@ class CoursesBanner extends Component { this.setState({ yslJointhe:false }) + if(this.state.yslJointhes===true){ + window.location.href = "/"; + } }; ysljoinmodalCanceltwo=()=>{ this.setState({