From 835b548ca8013af60a4898f36f9797c0f65ece3d Mon Sep 17 00:00:00 2001 From: 18571350067 Date: Tue, 30 Nov 2021 10:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E6=95=B4=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/course/question/QuestionAdd.vue | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 - }, }, }