ForcePilot/web/src/App.vue
2025-10-10 23:50:29 +08:00

21 lines
471 B
Vue

<script setup>
import { themeConfig } from '@/assets/theme'
import { useAgentStore } from '@/stores/agent'
import { useUserStore } from '@/stores/user'
import { onMounted } from 'vue'
const agentStore = useAgentStore();
const userStore = useUserStore();
onMounted(async () => {
if (userStore.isLoggedIn) {
await agentStore.initialize();
}
})
</script>
<template>
<a-config-provider :theme="themeConfig">
<router-view />
</a-config-provider>
</template>