From 61abfc07d5bb8a409fba1ae9c0b7dd377e3b6b4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 25 Dec 2019 17:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93=E5=8D=95=E9=80=89=E9=A2=98?= =?UTF-8?q?=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/question/Questionitem_banks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/question/Questionitem_banks.js b/public/react/src/modules/question/Questionitem_banks.js index d50cc341d..de522aa3e 100644 --- a/public/react/src/modules/question/Questionitem_banks.js +++ b/public/react/src/modules/question/Questionitem_banks.js @@ -184,7 +184,7 @@ class Questionitem_banks extends Component { console.log(k); const choicesdata={ choice_text:anserdata[2][k], - is_answer:anserdata[1]-1===k?0:1, + is_answer:anserdata[1]-1===k?1:0, } choices.push(choicesdata); } @@ -245,7 +245,7 @@ class Questionitem_banks extends Component { console.log(k); const choicesdata={ choice_text:anserdata[2][k], - is_answer:anserdata[1]-1===k?0:1, + is_answer:anserdata[1]-1===k?1:0, } choices.push(choicesdata); } @@ -302,13 +302,13 @@ class Questionitem_banks extends Component { const choices=[]; const choicesdata={ choice_text:"正确", - is_answer:anserdata[1]==="0"?0:1, + is_answer:anserdata[1]==="0"?1:0, } choices.push(choicesdata); const choicesdatas={ choice_text:"错误", - is_answer:anserdata[1]==="1"?0:1, + is_answer:anserdata[1]==="1"?1:0, } choices.push(choicesdatas); var data={