From 85b14824ad2a7b74536ebda00afaf44ed28e34c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 28 Jun 2019 10:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/coursesDetail/CoursesLeftNav.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js index 423632d89..4bca6affd 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js @@ -279,6 +279,7 @@ debugger this.props.unlocationNavfun(undefined) } else { this.props.unlocationNavfun(key) + this.props.history.replace(urls); } } this.setState({ @@ -688,6 +689,9 @@ debugger if(urls!=url){ this.props.history.replace(urls); } + if(this.props.indexs===undefined){ + this.props.history.replace(urls); + } } maincontent=(item,key)=>{