2023-02-22 15:59:23 +01:00
|
|
|
<template>
|
2024-05-01 14:51:16 +02:00
|
|
|
<!-- router-view needs some fake node first for some unknown reason -->
|
|
|
|
|
<span></span>
|
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-02-22 15:59:23 +01:00
|
|
|
export default {
|
|
|
|
|
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>
|