Files
pikasTech-HWLAB/web/hwlab-cloud-web/src/App.vue
T
2026-06-12 01:17:11 +08:00

23 lines
575 B
Vue

<script setup lang="ts">
import { onMounted } from "vue";
import { RouterView } from "vue-router";
import ToastHost from "@/components/common/ToastHost.vue";
import AppShell from "@/components/layout/AppShell.vue";
import { useAuthStore } from "@/stores/auth";
import { useWorkbenchStore } from "@/stores/workbench";
const auth = useAuthStore();
const workbench = useWorkbenchStore();
onMounted(async () => {
if (!auth.checked) await auth.bootstrap(workbench.projectId);
});
</script>
<template>
<AppShell>
<RouterView />
</AppShell>
<ToastHost />
</template>