perf: 调整
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<ConfigProvider :locale="zhCN" :theme="redTheme">
|
||||
<router-view v-if="$route.path === '/login' || ['ExploreList', 'ExploreDetail'].includes($route.name)" />
|
||||
<router-view v-if="$route.path === '/login' || ['ExploreList', 'ExploreDetail', 'Trial'].includes($route.name)" />
|
||||
<LayoutBasic v-else />
|
||||
</ConfigProvider>
|
||||
</template>
|
||||
|
||||
@ -28,7 +28,7 @@ export async function initApp() {
|
||||
const userStore = useUserStore();
|
||||
const chatStore = useChatStore();
|
||||
|
||||
await chatStore.getAgentInfo(); // 初始化智能体信息
|
||||
chatStore.getAgentInfo(); // 初始化智能体信息
|
||||
await userStore.getUserInfo(); // 初始化用户信息
|
||||
await getUserEnterpriseInfo(); // 初始化企业信息、navbar菜单、允许访问的路由
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user