diff --git a/public/react/src/modules/user/usersInfo/InfosCourse.js b/public/react/src/modules/user/usersInfo/InfosCourse.js
index d4c82ad2f..ce708a8f8 100644
--- a/public/react/src/modules/user/usersInfo/InfosCourse.js
+++ b/public/react/src/modules/user/usersInfo/InfosCourse.js
@@ -101,7 +101,6 @@ class InfosCourse extends Component{
totalCount,
isSpin
} = this.state;
- let isStudent = this.props.isStudent();
let is_current=this.props.is_current;
// console.log(this.props.current_user&&this.props.current_user.user_identity==="学生")
@@ -127,11 +126,11 @@ class InfosCourse extends Component{
{
- !isStudent && page == 1 && !category && is_current &&
- this.props.current_user&&this.props.current_user.user_identity==="学生"?"":
+ page == 1 && is_current &&
+ this.props.current_user && this.props.current_user.user_identity != "学生" ? : ""
}
{
- (!data || data.courses.length==0) && (isStudent || category) &&
+ (!data || data.courses.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
}
{
data && data.courses && data.courses.map((item,key)=>{
diff --git a/public/react/src/modules/user/usersInfo/InfosPath.js b/public/react/src/modules/user/usersInfo/InfosPath.js
index 6e5fa247d..a7b0b95f6 100644
--- a/public/react/src/modules/user/usersInfo/InfosPath.js
+++ b/public/react/src/modules/user/usersInfo/InfosPath.js
@@ -148,11 +148,11 @@ class InfosPath extends Component{
{
- !isStudent && page == 1 && !category && is_current &&
-
+ page == 1 && is_current &&
+ this.props.current_user && this.props.current_user.user_identity != "学生" ?
:""
}
{
- (!data || data.subjects.length==0) && (isStudent || category) &&
+ (!data || data.subjects.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
}
{
data && data.subjects && data.subjects.map((item,key)=>{
diff --git a/public/react/src/modules/user/usersInfo/InfosProject.js b/public/react/src/modules/user/usersInfo/InfosProject.js
index 06076a3cd..d308e0fd3 100644
--- a/public/react/src/modules/user/usersInfo/InfosProject.js
+++ b/public/react/src/modules/user/usersInfo/InfosProject.js
@@ -121,11 +121,11 @@ class InfosProject extends Component{
{
- !isStudent && page == 1 && !category && is_current &&
-
+ page == 1 && is_current && this.props.current_user && this.props.current_user.user_identity != "学生" ?
+ :""
}
{
- (!data || data.projects.length==0) && (isStudent || category) &&
+ (!data || data.projects.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
}
{
data && data.projects && data.projects.map((item,key)=>{
diff --git a/public/react/src/modules/user/usersInfo/InfosShixun.js b/public/react/src/modules/user/usersInfo/InfosShixun.js
index 2ccb8744c..7e911202e 100644
--- a/public/react/src/modules/user/usersInfo/InfosShixun.js
+++ b/public/react/src/modules/user/usersInfo/InfosShixun.js
@@ -157,11 +157,11 @@ class InfosShixun extends Component{
{
- !isStudent && page == 1 && !category && is_current &&
-
+ page == 1 && is_current && this.props.current_user && this.props.current_user.user_identity != "学生" ?
+ :""
}
{
- (!data || data.shixuns.length==0) && (isStudent || category) &&
+ (!data || data.shixuns.length==0) && (this.props.current_user && this.props.current_user.user_identity === "学生" || category) &&
}
{
data && data.shixuns && data.shixuns.map((item,key)=>{