From 2a613bd6386f09527fcff34e7349383c3e8e1e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 5 Jul 2019 10:24:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/shixunHomework/shixunHomework.js | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js index ec2f5e4c0..9bf782d48 100644 --- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js +++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js @@ -878,6 +878,7 @@ class ShixunHomework extends Component{ if(response.data&&response.data){ this.setState({ course_modules:response.data, + homework_categorys:response.data.homework_category }) } } @@ -1128,19 +1129,31 @@ class ShixunHomework extends Component{ {this.setState({dirSearchValue: e.target.value})}}/>
} - {/*{course_modules&&course_modules.main_category.map((item,key)=>{*/} - {/*return(*/} - {/*