@ -103,11 +103,18 @@ class ListPageIndex extends Component{
<div className="newMain clearfix">
{/*头部banner*/}
<CoursesBanner {...this.props}></CoursesBanner>
{yslGuideone===null||yslGuideone===undefined||yslGuideone===false?
<Guide
setwindowlocal={(b)=>this.setwindowlocal(b)}
>
</Guide>
(
this.props.isAdmin()===true?
:""
)
}
@ -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, {