From fb8236d12751aa03c8dcd7562b1438b4642d7269 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 18 Oct 2025 18:46:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9A=BE=E5=BA=A6=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E7=9A=84=E9=A2=9C=E8=89=B2=E7=B1=BB=E5=9E=8B=E6=A0=87=E6=B3=A8?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages-user/client-modules/src/render/ui/title.tsx | 2 +- src/types/declaration/eventDec.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages-user/client-modules/src/render/ui/title.tsx b/packages-user/client-modules/src/render/ui/title.tsx index 5983150..c65fbe5 100644 --- a/packages-user/client-modules/src/render/ui/title.tsx +++ b/packages-user/client-modules/src/render/ui/title.tsx @@ -125,7 +125,7 @@ export const GameTitle = defineComponent(props => { const hard = main.levelChoose.map(v => { return { code: v.hard, - color: core.arrayToRGBA(v.color), + color: core.arrayToRGBA(v.color ?? [1, 1, 1]), name: v.title, hard: v.name, colorTrans: transitionedColor('#fff', 400, hyper('sin', 'out'))!, diff --git a/src/types/declaration/eventDec.d.ts b/src/types/declaration/eventDec.d.ts index 296ce3b..5180637 100644 --- a/src/types/declaration/eventDec.d.ts +++ b/src/types/declaration/eventDec.d.ts @@ -225,7 +225,7 @@ interface LevelChooseEvent { /** * 难度的颜色 */ - color: RGBArray; + color?: RGBArray; /** * 选择该难度时执行的事件