From 73bacb789d00d64ca6d8aaa0c0fec087699c3321 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 8 May 2020 10:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 15 +++++++++++++++ src/modules/user/usersInfo/InfosCourse.js | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 4c345e2c9..7c715b505 100644 --- a/src/App.js +++ b/src/App.js @@ -67,6 +67,12 @@ const http500 = Loadable({ loader: () => import('./modules/500/http500'), loading: Loading, }) +// 个人主页 +const InfosIndex = Loadable({ + loader: () => import('./modules/user/usersInfo/InfosIndex'), + loading: Loading, +}) + class App extends Component { constructor(props) { @@ -243,7 +249,16 @@ class App extends Component { {/*404*/} + {/* 个人主页 */} + { + return () + } + }> + + () diff --git a/src/modules/user/usersInfo/InfosCourse.js b/src/modules/user/usersInfo/InfosCourse.js index 71ca840d9..ece9604a5 100644 --- a/src/modules/user/usersInfo/InfosCourse.js +++ b/src/modules/user/usersInfo/InfosCourse.js @@ -286,7 +286,7 @@ class InfosCourse extends Component { : "" } { - (!data || (data && data.courses.length === 0)) && (category || (!category && this.props.current_user && this.props.current_user.user_identity == "学生")) && + (!data || (data && data.courses && data.courses.length === 0)) && (category || (!category && this.props.current_user && this.props.current_user.user_identity == "学生")) && } { data && data.courses && data.courses.map((item, key) => {