19 lines
454 B
Vue
19 lines
454 B
Vue
|
|
<script setup lang="ts">
|
||
|
|
import { onMounted } from "vue";
|
||
|
|
|
||
|
|
import DesktopShell from "./components/DesktopShell.vue";
|
||
|
|
import { useDesktopSession } from "./composables/useDesktopSession";
|
||
|
|
import LoginView from "./views/LoginView.vue";
|
||
|
|
|
||
|
|
const { isAuthenticated, syncRuntimeSession } = useDesktopSession();
|
||
|
|
|
||
|
|
onMounted(() => {
|
||
|
|
void syncRuntimeSession();
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<template>
|
||
|
|
<DesktopShell v-if="isAuthenticated" />
|
||
|
|
<LoginView v-else />
|
||
|
|
</template>
|