<template>
  <ConfirmDialog/>
  <router-view :key="$route.fullPath"></router-view>
</template>

<script>

import ConfirmDialog from 'primevue/confirmdialog';

export default {
  components: { ConfirmDialog },
  data() {
    return {
    };
  },
  mounted() {
    if (!localStorage.token) {
      if (import.meta.env.BASE_URL !== '/') window.location.href = '/';
      else console.error('Set localStorage.token')
    }
  }
};

</script>

<style scoped>
</style>
