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

@ -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?
<Guide
setwindowlocal={(b)=>this.setwindowlocal(b)}
>
</Guide>
:""
)
:""
}

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

Loading…
Cancel
Save