Files
geo/apps/desktop-client/src/renderer/App.vue
T

19 lines
454 B
Vue
Raw Normal View History

<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>