调整课堂报错问题

dev_aliyun_beta
杨树明 5 years ago
parent 93c452eba2
commit 95f92dd284

@ -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
})
}
}
}

@ -1210,7 +1210,7 @@ class ShixunHomework extends Component{
</div>
{
datas===undefined?'' :datas.homeworks.length===0? <NoneData></NoneData>:""
datas===undefined?"":datas.homeworks && datas.homeworks.length===0? <NoneData></NoneData>:""
}
</Spin>

Loading…
Cancel
Save