homemanager-fe/src/App.vue

19 lines
346 B
Vue
Raw Normal View History

2023-01-16 19:37:39 +00:00
<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>