diff --git a/src/views/course/question/QuestionAdd.vue b/src/views/course/question/QuestionAdd.vue index 3e1444e..8576202 100644 --- a/src/views/course/question/QuestionAdd.vue +++ b/src/views/course/question/QuestionAdd.vue @@ -96,7 +96,7 @@ - ge + @@ -196,7 +196,6 @@ export default { if(this.multiselect.rightAnswers) this.checkedValues = this.multiselect.rightAnswers.split('') console.log('arr',this.checkedValues) this.multiselect.disabled = false - this.getRightAnswer() } else if (this.tabKey == '3') { this.estimate = res.data this.estimate.disabled = false @@ -416,13 +415,6 @@ export default { return from }, - // 获取多选题的正确答案 - getRightAnswer() { - if (this.multiselect.rightAnswers.indexOf('A') > -1) this.multiselect.a = true - if (this.multiselect.rightAnswers.indexOf('B') > -1) this.multiselect.b = true - if (this.multiselect.rightAnswers.indexOf('C') > -1) this.multiselect.c = true - if (this.multiselect.rightAnswers.indexOf('D') > -1) this.multiselect.d = true - }, }, }