diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js
index a0ba1e8da..1565f5abb 100644
--- a/public/react/src/modules/courses/Resource/index.js
+++ b/public/react/src/modules/courses/Resource/index.js
@@ -119,20 +119,21 @@ class Fileslists extends Component{
}).then((response) => {
if(response!=undefined){
- if(response.data&&response.data){
- let list=response.data.course_modules;
- let course_second_categoriess;
- list.map((item,key)=>{
- course_second_categoriess=item.course_second_categories
- })
-
- this.setState({
- course_modules:response.data,
- has_course_groups:response.data.has_course_groups,
- course_second_categories:course_second_categoriess
- })
- }
-
+ if(response.data&&response.data) {
+ if (response.data.status != 401) {
+ let list = response.data.course_modules;
+ let course_second_categoriess;
+ list.map((item, key) => {
+ course_second_categoriess = item.course_second_categories
+ })
+
+ this.setState({
+ course_modules: response.data,
+ has_course_groups: response.data.has_course_groups,
+ course_second_categories: course_second_categoriess
+ })
+ }
+ }
}
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index c7fa2e70a..88dffa232 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -1210,7 +1210,7 @@ class ShixunHomework extends Component{
{
- datas===undefined?'' :datas.homeworks.length===0? :""
+ datas===undefined?"":datas.homeworks && datas.homeworks.length===0? :""
}