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, {