Compare commits

...

2 Commits

Author SHA1 Message Date
AncTe
1cfcad07a0
Merge fb8236d127 into 820dc5bf4c 2025-10-18 10:46:38 +00:00
fb8236d127 fix: 难度选项的颜色类型标注错误 2025-10-18 18:46:25 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ export const GameTitle = defineComponent<GameTitleProps>(props => {
const hard = main.levelChoose.map<ButtonOption>(v => { const hard = main.levelChoose.map<ButtonOption>(v => {
return { return {
code: v.hard, code: v.hard,
color: core.arrayToRGBA(v.color), color: core.arrayToRGBA(v.color ?? [1, 1, 1]),
name: v.title, name: v.title,
hard: v.name, hard: v.name,
colorTrans: transitionedColor('#fff', 400, hyper('sin', 'out'))!, colorTrans: transitionedColor('#fff', 400, hyper('sin', 'out'))!,

View File

@ -225,7 +225,7 @@ interface LevelChooseEvent {
/** /**
* *
*/ */
color: RGBArray; color?: RGBArray;
/** /**
* *