homemanager-fe/src/App.vue
2023-01-16 21:37:39 +02:00

19 lines
346 B
Vue

<script setup lang="ts">
import { onMounted } from 'vue';
import { useUserStore } from './store/user.store';
const userStore = useUserStore();
onMounted(() => {
if (userStore.accessToken && !userStore.isLoggedIn) {
userStore.loginFromToken();
}
})
</script>
<template>
<router-view></router-view>
</template>
<style scoped>
</style>