fix(gameStore): 修正侧边栏折叠逻辑

- 调整侧边栏折叠条件以适配大屏设备
- 移除小屏设备上的错误折叠状态
- 确保默认状态下侧边栏在宽屏上展开
This commit is contained in:
coolxitech
2025-12-13 10:20:09 +08:00
parent 469c5a0170
commit ec69c77956

View File

@@ -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<string, Planet>
}),
getters: {