fix: 难度对象索引错误

This commit is contained in:
unanmed 2025-10-09 23:40:04 +08:00
parent ed4db82511
commit 2110071b84

View File

@ -209,7 +209,7 @@ export const GameTitle = defineComponent<GameTitleProps>(props => {
toggleHard();
return;
}
const item = hard[code];
const item = hard.find(v => v.code === code)!;
startGame(item.name);
} else {
switch (code) {