perf: 去掉获取agent信息的await

This commit is contained in:
rd
2025-09-12 15:09:44 +08:00
parent f12bb0e86e
commit 12080f08be

View File

@ -30,7 +30,6 @@ export const getUserEnterpriseInfo = async () => {
const enterpriseStore = useEnterpriseStore();
// const sidebarStore = useSidebarStore();
// const userStore = useUserStore();
console.log('getUserEnterpriseInfo');
await enterpriseStore.getEnterpriseInfo(); // 初始化企业信息
// sidebarStore.getUserNavbarMenuList(); // 初始化navbar菜单
// userStore.getUserAllowAccessRoutes(); // 初始化允许访问的路由
@ -46,7 +45,7 @@ export async function initApp() {
if (enterpriseStore.isOpenEnterprise) {
await getUserEnterpriseInfo(); // 初始化企业信息
await chatStore.getAgentInfo(); // 初始化智能体信息
chatStore.getAgentInfo(); // 初始化智能体信息
sidebarStore.startUnreadInfoPolling(); // 初始化未读信息
}