ForcePilot/web/src/App.vue

21 lines
471 B
Vue
Raw Normal View History

2025-05-10 01:02:23 +08:00
<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();
}
})
2025-05-10 01:02:23 +08:00
</script>
<template>
2025-05-10 01:02:23 +08:00
<a-config-provider :theme="themeConfig">
<router-view />
</a-config-provider>
</template>