ForcePilot/web/src/App.vue
2026-01-15 06:01:34 +08:00

23 lines
582 B
Vue

<script setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import { useAgentStore } from '@/stores/agent'
import { useUserStore } from '@/stores/user'
import { useThemeStore } from '@/stores/theme'
import { onMounted } from 'vue'
const agentStore = useAgentStore()
const userStore = useUserStore()
const themeStore = useThemeStore()
onMounted(async () => {
if (userStore.isLoggedIn) {
await agentStore.initialize()
}
})
</script>
<template>
<a-config-provider :theme="themeStore.currentTheme" :locale="zhCN">
<router-view />
</a-config-provider>
</template>