调整课堂报错问题

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

@ -119,20 +119,21 @@ class Fileslists extends Component{
}).then((response) => { }).then((response) => {
if(response!=undefined){ if(response!=undefined){
if(response.data&&response.data){ if(response.data&&response.data) {
let list=response.data.course_modules; if (response.data.status != 401) {
let course_second_categoriess; let list = response.data.course_modules;
list.map((item,key)=>{ let course_second_categoriess;
course_second_categoriess=item.course_second_categories list.map((item, key) => {
}) course_second_categoriess = item.course_second_categories
})
this.setState({
course_modules:response.data, this.setState({
has_course_groups:response.data.has_course_groups, course_modules: response.data,
course_second_categories:course_second_categoriess has_course_groups: response.data.has_course_groups,
}) course_second_categories: course_second_categoriess
} })
}
}
} }

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

Loading…
Cancel
Save