|
|
|
@ -87,7 +87,7 @@ class SingleEditor extends Component{
|
|
|
|
|
// TODO check
|
|
|
|
|
const answerArray = standard_answers.map((item, index) => { return item == true ? index+1 : -1 }).filter(item => item != -1);
|
|
|
|
|
if(!question_title) {
|
|
|
|
|
this.props.showNotification('请先输入题目题干'); return;
|
|
|
|
|
this.props.showNotification('题目不能为空'); return;
|
|
|
|
|
}
|
|
|
|
|
const intScore = parseFloat(question_score)
|
|
|
|
|
if(!question_score || intScore == NaN) {
|
|
|
|
@ -101,7 +101,7 @@ class SingleEditor extends Component{
|
|
|
|
|
this.props.showNotification('请先点击选择本选择题的正确选项'); return;
|
|
|
|
|
}
|
|
|
|
|
if(!question_title) {
|
|
|
|
|
this.props.showNotification('请先输入题目题干'); return;
|
|
|
|
|
this.props.showNotification('题目不能为空'); return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(let i = 0; i < question_choices.length; i++) {
|
|
|
|
|