From b18127ff6825fb3de5dd2ae49bdc6ecc7c2f25bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 27 Jul 2019 15:42:01 +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 --- public/react/src/modules/courses/ListPageIndex.js | 15 +++++++++++---- public/react/src/modules/courses/poll/PollNew.js | 4 ++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/courses/ListPageIndex.js b/public/react/src/modules/courses/ListPageIndex.js index a15429bff..a1fef5de8 100644 --- a/public/react/src/modules/courses/ListPageIndex.js +++ b/public/react/src/modules/courses/ListPageIndex.js @@ -103,11 +103,18 @@ class ListPageIndex extends Component{
{/*头部banner*/} + + + {yslGuideone===null||yslGuideone===undefined||yslGuideone===false? - this.setwindowlocal(b)} - > - + ( + this.props.isAdmin()===true? + this.setwindowlocal(b)} + > + + :"" + ) :"" } diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js index 651a8b131..e68669fc3 100644 --- a/public/react/src/modules/courses/poll/PollNew.js +++ b/public/react/src/modules/courses/poll/PollNew.js @@ -2155,12 +2155,12 @@ class PollNew extends Component { pollid = this.state.pollid; } - if(mews ==="new"){ + // if(mews ==="new"){ if(this.state.poll_questions&&this.state.poll_questions.length===0){ this.props.showNotification("至少创建1个题目"); return; } - } + // } var url = `/polls/${pollid}.json`; axios.put(url, {