From f50b79c3433d23837d717dda66091f16294c84ee Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 21 Aug 2019 13:42:28 +0800 Subject: [PATCH] issue --- .../react/src/modules/courses/boards/BoardsNew.js | 13 +++++++++---- .../src/modules/courses/coursesPublic/NoneData.js | 2 +- public/react/src/modules/courses/poll/Poll.js | 1 + 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/public/react/src/modules/courses/boards/BoardsNew.js b/public/react/src/modules/courses/boards/BoardsNew.js index 43be980ed..c96667283 100644 --- a/public/react/src/modules/courses/boards/BoardsNew.js +++ b/public/react/src/modules/courses/boards/BoardsNew.js @@ -358,10 +358,15 @@ class BoardsNew extends Component{ dropdownRender={menu => (
{menu} - -
this.refs['addDirModal'].open()}> - 添加目录 -
+ { + isAdmin && + + +
this.refs['addDirModal'].open()}> + 添加目录 +
+
+ }
)} > diff --git a/public/react/src/modules/courses/coursesPublic/NoneData.js b/public/react/src/modules/courses/coursesPublic/NoneData.js index 4066cea8b..35d7a5271 100644 --- a/public/react/src/modules/courses/coursesPublic/NoneData.js +++ b/public/react/src/modules/courses/coursesPublic/NoneData.js @@ -22,7 +22,7 @@ class NoneData extends Component{ } `} - +

暂时还没有相关数据哦!

) diff --git a/public/react/src/modules/courses/poll/Poll.js b/public/react/src/modules/courses/poll/Poll.js index 07be2196c..9574f2492 100644 --- a/public/react/src/modules/courses/poll/Poll.js +++ b/public/react/src/modules/courses/poll/Poll.js @@ -288,6 +288,7 @@ class Poll extends Component{ }) let{type,StudentList_value}=this.state this.InitList(type,StudentList_value,1); + this.props.updataleftNavfun(); } }).catch((error)=>{ console.log(error);