dev_forum
杨树林 5 years ago
parent 8a416ee644
commit b18127ff68

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

@ -2155,12 +2155,12 @@ class PollNew extends Component {
pollid = this.state.pollid; pollid = this.state.pollid;
} }
if(mews ==="new"){ // if(mews ==="new"){
if(this.state.poll_questions&&this.state.poll_questions.length===0){ if(this.state.poll_questions&&this.state.poll_questions.length===0){
this.props.showNotification("至少创建1个题目"); this.props.showNotification("至少创建1个题目");
return; return;
} }
} // }
var url = `/polls/${pollid}.json`; var url = `/polls/${pollid}.json`;
axios.put(url, { axios.put(url, {

Loading…
Cancel
Save