Removed unnecessary complexity in App.vue

This commit is contained in:
2024-09-10 13:13:52 +02:00
parent 5edf197533
commit 236aac0b9b
3 changed files with 66 additions and 81 deletions

View File

@ -6,7 +6,6 @@ import { useCookies } from '@vueuse/integrations/useCookies'
export const useGameStore = defineStore('game', {
state: () => ({
screen: 'login',
token: '' as string | null,
connection: null as Socket | null,
user: null as User | null,
@ -17,9 +16,6 @@ export const useGameStore = defineStore('game', {
isUserPanelOpen: false
}),
actions: {
setScreen(screen: string) {
this.screen = screen
},
setToken(token: string) {
this.token = token
},