From 9e1007186391a9ed5ea9d0a5fcfe26c67c939791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 12:48:15 +0800 Subject: [PATCH 1/2] =?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 --- public/react/src/AppConfig.js | 5 ++++ .../tasks/GraduationTasksappraiseReply.js | 30 ++++++++++--------- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/public/react/src/AppConfig.js b/public/react/src/AppConfig.js index fee5e6df5..8f93f780b 100644 --- a/public/react/src/AppConfig.js +++ b/public/react/src/AppConfig.js @@ -146,6 +146,11 @@ export function initAxiosInterceptors(props) { if (response.data.status === 402) { locationurl(response.data.url); } + + + if (response.data.status === 401) { + return config; + } // if (response.data.status === 407) { // 在app js 中解决 Trialapplication // // diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js index 1c733868e..0f98f4d8f 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js @@ -157,18 +157,9 @@ class GraduationTasksappraiseReply extends Component{ return( -
- {isStudent===true?comment_scores.length===0? -
-
-
- -

没有数据可以显示!

-
-
-
: + {comment_scores.length===0? "":
+ {isStudent===true? + - } + }
+ } ) } } -export default ImageLayerOfCommentHOC() (GraduationTasksappraiseReply); \ No newline at end of file +export default ImageLayerOfCommentHOC() (GraduationTasksappraiseReply); +{/*
*/} + {/*
*/} + {/**/} + {/**/} + {/*

没有数据可以显示!

*/} + {/*
*/} + {/*
*/} +{/*
*/} \ No newline at end of file From cf9082cd877fececf647fefb2b6b1d16431b4765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 14:20:45 +0800 Subject: [PATCH 2/2] =?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 --- .../courses/graduation/tasks/GraduationTasksappraiseReply.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js index 0f98f4d8f..07b2909b3 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraiseReply.js @@ -153,11 +153,12 @@ class GraduationTasksappraiseReply extends Component{ const { current_user, memo } = this.props const isAdmin = this.props.isAdmin(); const isStudent=this.props.isStudent(); + const isNotMember=this.props.isNotMember(); return( - {comment_scores.length===0? "":
+ {comment_scores.length===0&&isStudent===true||comment_scores.length===0&&isNotMember===true? "":
{isStudent===true?