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

@ -103,12 +103,19 @@ 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?
(
this.props.isAdmin()===true?
<Guide <Guide
setwindowlocal={(b)=>this.setwindowlocal(b)} setwindowlocal={(b)=>this.setwindowlocal(b)}
> >
</Guide> </Guide>
:"" :""
)
:""
} }
<div className="educontent clearfix" style={{flex: "1 0 auto"}}> <div className="educontent clearfix" style={{flex: "1 0 auto"}}>

@ -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