

<script setup>
  import { onMounted } from 'vue';
  import { RouterLink, RouterView } from 'vue-router'
  import { UserStore } from '@/stores/user'
  import UserBlock from '@components/block/UserBlock.vue'


  const userStore = UserStore()

  onMounted(() => {
    console.log('APP onBeforeMount')
    userStore.checkUser()
  })


</script>

<template>
  <header>
    <h1>Où atterrir</h1>
    <UserBlock/>
  </header>

  <RouterView />
</template>

<style scoped>
</style>
