diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index a506ce064..32aa05a0a 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -368,8 +368,6 @@ class Listofworksstudentone extends Component { if(result === undefined){ return } - try { - if (result.status === 200) { if(this.props.isNotMember()===false) { @@ -390,15 +388,12 @@ class Listofworksstudentone extends Component { this.props.Getdataback(result,result.data); if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") { this.seacthdata(result.data); - } else { + } else { this.seacthdatas(result.data, result.data.student_works); } } } - }catch (e) { - console.log(e); - } }).catch((error) => { console.log(error); }) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index 1db93c2bd..393d8af05 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -53,6 +53,10 @@ class ShixunHomeworkPage extends Component { } Getdataback = (jobsettingsdata, teacherdata) => { + console.log("56"); + console.log(jobsettingsdata); + console.log(teacherdata); + this.setState({ jobsettingsdata: jobsettingsdata, teacherdata: teacherdata,