chromesetting
杨树林 5 years ago
parent 186c179cb9
commit 67c20e766f

@ -1450,7 +1450,6 @@ class PollNew extends Component {
//object 单个数组数据 //object 单个数组数据
Deleteadddomthree = (indexo, object,bool) => { Deleteadddomthree = (indexo, object,bool) => {
this.setState({ this.setState({
Newdisplay:false,
newoption: false, newoption: false,
}) })
// console.log("deleteadddom 349") // console.log("deleteadddom 349")
@ -1478,6 +1477,7 @@ class PollNew extends Component {
} }
if (newarr[indexo].question.question_title === "") { if (newarr[indexo].question.question_title === "") {
this.props.showNotification('题目不能为空!'); this.props.showNotification('题目不能为空!');
return return
} }
if (max > 0) { if (max > 0) {
@ -2016,7 +2016,11 @@ class PollNew extends Component {
if (result !== undefined) { if (result !== undefined) {
if (result.data.status === 0) { if (result.data.status === 0) {
this.props.showNotification(`已完成`); this.props.showNotification(`已完成`);
thiss.thisinitializationdatanew(); thiss.thisinitializationdatanew();
this.setState({
Newdisplay:false,
})
// console.log("确认创建问题") // console.log("确认创建问题")
// console.log(result) // console.log(result)
// try { // try {

Loading…
Cancel
Save