ForcePilot/web/src/App.vue
Wenjie Zhang 3bca00a864 refactor(agent): 重构智能体相关逻辑至Pinia store
将智能体管理、配置、线程和消息等逻辑从组件中抽离,统一管理至Pinia store
优化代码结构,提升可维护性和复用性
修复多处直接调用API的问题,统一通过store管理状态
2025-08-25 01:46:31 +08:00

17 lines
356 B
Vue

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