修复bug

This commit is contained in:
yezian 2024-07-24 20:45:18 +08:00
parent 43c45b684f
commit 704631f203
1 changed files with 2 additions and 1 deletions

View File

@ -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";