From ec69c77956aa6120a9e0737ee280f7c7fd483f31 Mon Sep 17 00:00:00 2001 From: coolxitech Date: Sat, 13 Dec 2025 10:20:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(gameStore):=20=E4=BF=AE=E6=AD=A3=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8F=E6=8A=98=E5=8F=A0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整侧边栏折叠条件以适配大屏设备 - 移除小屏设备上的错误折叠状态 - 确保默认状态下侧边栏在宽屏上展开 --- src/stores/gameStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/gameStore.ts b/src/stores/gameStore.ts index acae16b..0e77186 100644 --- a/src/stores/gameStore.ts +++ b/src/stores/gameStore.ts @@ -23,7 +23,7 @@ export const useGameStore = defineStore('game', { currentPlanetId: '', isDark: '', locale: 'zh-CN' as Locale, - sidebarCollapsed: window.innerWidth < 1024 ? false : true, + sidebarCollapsed: window.innerWidth >= 1024, universePlanets: {} as Record }), getters: {