diff --git a/public/react/src/modules/courses/exercise/new/JudgeEditor.js b/public/react/src/modules/courses/exercise/new/JudgeEditor.js index a5571aab4..f43312f5e 100644 --- a/public/react/src/modules/courses/exercise/new/JudgeEditor.js +++ b/public/react/src/modules/courses/exercise/new/JudgeEditor.js @@ -55,7 +55,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) { @@ -69,7 +69,7 @@ class SingleEditor extends Component{ this.props.showNotification('请先点击本题的正确选项'); return; } if(!question_title) { - this.props.showNotification('请先输入题目题干'); return; + this.props.showNotification('题目不能为空'); return; } /** diff --git a/public/react/src/modules/courses/exercise/new/MainEditor.js b/public/react/src/modules/courses/exercise/new/MainEditor.js index e3574a3d5..52d3e24bc 100644 --- a/public/react/src/modules/courses/exercise/new/MainEditor.js +++ b/public/react/src/modules/courses/exercise/new/MainEditor.js @@ -45,7 +45,7 @@ class MainEditor extends Component{ // TODO check const answerArray = standard_answers if(!question_title) { - this.props.showNotification('请先输入题目题干'); return; + this.props.showNotification('题目不能为空'); return; } const intScore = parseFloat(question_score) if(!question_score || intScore == NaN) { diff --git a/public/react/src/modules/courses/exercise/new/NullEditor.js b/public/react/src/modules/courses/exercise/new/NullEditor.js index d996a524d..e5a00794e 100644 --- a/public/react/src/modules/courses/exercise/new/NullEditor.js +++ b/public/react/src/modules/courses/exercise/new/NullEditor.js @@ -69,7 +69,7 @@ class NullEditor extends Component{ // const answerArray = standard_answers.map((item, index) => { return item == true ? index+1 : -1 }).filter(item => item != -1); let answerArray = [] if(!question_title) { - this.props.showNotification('请先输入题目题干'); return; + this.props.showNotification('题目不能为空'); return; } const intScore = parseFloat(question_score) if(!question_score || intScore == NaN) { @@ -97,7 +97,7 @@ class NullEditor extends Component{ return; } if(!question_title) { - this.props.showNotification('请先输入题目题干'); return; + this.props.showNotification('题目不能为空'); return; } /** diff --git a/public/react/src/modules/courses/exercise/new/SingleEditor.js b/public/react/src/modules/courses/exercise/new/SingleEditor.js index 8cbcdec06..ee8d3c204 100644 --- a/public/react/src/modules/courses/exercise/new/SingleEditor.js +++ b/public/react/src/modules/courses/exercise/new/SingleEditor.js @@ -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++) {