19 lines
346 B
Vue
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>
|