2023-02-22 15:59:23 +01:00
|
|
|
<template>
|
2023-03-29 19:28:32 +02:00
|
|
|
<ConfirmDialog/>
|
2023-07-11 15:02:35 +02:00
|
|
|
<router-view></router-view>
|
2023-02-22 15:59:23 +01:00
|
|
|
</template>
|
2023-02-19 17:13:33 +01:00
|
|
|
|
2023-02-22 15:59:23 +01:00
|
|
|
<script>
|
2023-02-19 17:13:33 +01:00
|
|
|
|
2023-03-29 09:46:07 +02:00
|
|
|
import ConfirmDialog from 'primevue/confirmdialog';
|
|
|
|
|
|
2023-02-22 15:59:23 +01:00
|
|
|
export default {
|
2023-03-29 09:46:07 +02:00
|
|
|
components: { ConfirmDialog },
|
2023-02-22 15:59:23 +01:00
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
2023-04-16 19:06:14 +02:00
|
|
|
if (!localStorage.token) {
|
|
|
|
|
if (import.meta.env.BASE_URL !== '/') window.location.href = '/';
|
|
|
|
|
else console.error('Set localStorage.token')
|
|
|
|
|
}
|
2023-02-22 15:59:23 +01:00
|
|
|
}
|
|
|
|
|
};
|
2023-02-19 17:13:33 +01:00
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
</style>
|