2023-02-22 15:59:23 +01:00
|
|
|
<template>
|
2023-03-29 19:28:32 +02:00
|
|
|
<ConfirmDialog/>
|
|
|
|
|
<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 {
|
2023-04-16 18:13:22 +02:00
|
|
|
accessToken: localStorage.token || ''
|
2023-02-22 15:59:23 +01:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
2023-04-16 18:13:22 +02:00
|
|
|
if (!this.accessToken) window.location.href = '/';
|
2023-02-22 15:59:23 +01:00
|
|
|
}
|
|
|
|
|
};
|
2023-02-19 17:13:33 +01:00
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
</style>
|