Move session management into session store
Trying to get rid of the redirect to signin on any page refresh
This commit is contained in:
parent
bf156eaf7f
commit
efa01cffc2
8 changed files with 34 additions and 69 deletions
|
|
@ -1,15 +1,9 @@
|
|||
<template>
|
||||
<div id="content">
|
||||
<div v-if="session.loading">Loading...</div>
|
||||
<div v-else-if="session.error">Error: {{ session.error }}</div>
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useSessionStore } from "@/store/session";
|
||||
|
||||
const session = useSessionStore();
|
||||
</script>
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<style scoped></style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue