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) => {