Template
feat : lobby
This commit is contained in:
@@ -1,12 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import { useUserStore } from '~/store/user.store';
|
||||
import { useUserStore } from "~/store/user.store";
|
||||
import { useLobbyStore } from "./store/lobby.store";
|
||||
const userStore = useUserStore();
|
||||
const lobbyStore = useLobbyStore();
|
||||
|
||||
userStore.whoami();
|
||||
lobbyStore.fetchGames();
|
||||
onBeforeMount(() => {
|
||||
lobbyStore.subscribe();
|
||||
});
|
||||
|
||||
const req = await userStore.whoami()
|
||||
|
||||
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
lobbyStore.close();
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -14,7 +20,7 @@ const req = await userStore.whoami()
|
||||
<NuxtRouteAnnouncer />
|
||||
<NuxtLayout>
|
||||
<NuxtLoadingIndicator> Loading... </NuxtLoadingIndicator>
|
||||
<Header />
|
||||
<ConceptHeader />
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user