mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
fix(gameStore): 修正侧边栏折叠逻辑
- 调整侧边栏折叠条件以适配大屏设备 - 移除小屏设备上的错误折叠状态 - 确保默认状态下侧边栏在宽屏上展开
This commit is contained in:
@@ -23,7 +23,7 @@ export const useGameStore = defineStore('game', {
|
|||||||
currentPlanetId: '',
|
currentPlanetId: '',
|
||||||
isDark: '',
|
isDark: '',
|
||||||
locale: 'zh-CN' as Locale,
|
locale: 'zh-CN' as Locale,
|
||||||
sidebarCollapsed: window.innerWidth < 1024 ? false : true,
|
sidebarCollapsed: window.innerWidth >= 1024,
|
||||||
universePlanets: {} as Record<string, Planet>
|
universePlanets: {} as Record<string, Planet>
|
||||||
}),
|
}),
|
||||||
getters: {
|
getters: {
|
||||||
|
|||||||
Reference in New Issue
Block a user