Files
cloudron-box/filemanager/src/App.vue
T

26 lines
378 B
Vue
Raw Normal View History

<template>
2023-03-29 19:28:32 +02:00
<ConfirmDialog/>
<router-view></router-view>
</template>
2023-02-19 17:13:33 +01:00
<script>
2023-02-19 17:13:33 +01:00
2023-03-29 09:46:07 +02:00
import ConfirmDialog from 'primevue/confirmdialog';
export default {
2023-03-29 09:46:07 +02:00
components: { ConfirmDialog },
data() {
return {
2023-04-16 18:13:22 +02:00
accessToken: localStorage.token || ''
};
},
mounted() {
2023-04-16 18:13:22 +02:00
if (!this.accessToken) window.location.href = '/';
}
};
2023-02-19 17:13:33 +01:00
</script>
<style scoped>
</style>