fix: 标题界面的 clickButton code 参数传递错误

This commit is contained in:
unanmed 2025-10-09 23:37:03 +08:00
parent 2a59e135ba
commit 4533f5827b

View File

@ -482,7 +482,7 @@ export const GameTitle = defineComponent<GameTitleProps>(props => {
// 这个缩放性能影响极大,原因不明
// scale={[v.scale.ref.value, v.scale.ref.value]}
onEnter={() => enterMain(i)}
onClick={() => clickButton(i)}
onClick={() => clickButton(v.code)}
/>
);
})}
@ -504,7 +504,7 @@ export const GameTitle = defineComponent<GameTitleProps>(props => {
filter={buttonFilter}
fillStyle={v.colorTrans.ref.value}
onEnter={() => enterHard(i)}
onClick={() => clickButton(i)}
onClick={() => clickButton(v.code)}
/>
);
})}