28 lines
439 B
Vue
28 lines
439 B
Vue
<template>
|
|
<ConfirmDialog/>
|
|
<router-view></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>
|