From 704631f203f346fcf0a068ad112d25e724117f2b Mon Sep 17 00:00:00 2001 From: yezian Date: Wed, 24 Jul 2024 20:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/iqtest/page.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/iqtest/page.jsx b/app/iqtest/page.jsx index 765b6e8..76f644f 100644 --- a/app/iqtest/page.jsx +++ b/app/iqtest/page.jsx @@ -58,7 +58,8 @@ export default function Test1() { const partIndex = index % 6 ? index % 6 : 6; let part; let partOptionsNum; - const partNum = Math.trunc(index / 6); + const partNum = Math.trunc((index - 1) / 6); + console.log(partNum); switch (partNum) { case 0: part = "A";