perf: 主agent对话交互调整
This commit is contained in:
@ -7,8 +7,9 @@
|
||||
|
||||
<script setup>
|
||||
import { useUserStore } from '@/stores';
|
||||
import { useChatStore } from '@/stores/modules/chat';
|
||||
|
||||
import { getUserEnterpriseInfo } from '@/utils/user';
|
||||
import { initApp } from '@/utils/user';
|
||||
import { useSidebarStore } from '@/stores/modules/side-bar';
|
||||
|
||||
import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
|
||||
@ -16,6 +17,7 @@ import zhCN from '@arco-design/web-vue/es/locale/lang/zh-cn';
|
||||
const userStore = useUserStore();
|
||||
const route = useRoute();
|
||||
const sidebarStore = useSidebarStore();
|
||||
const chatStore = useChatStore();
|
||||
|
||||
const redTheme = {
|
||||
token: {
|
||||
@ -25,11 +27,10 @@ const redTheme = {
|
||||
};
|
||||
|
||||
const init = async () => {
|
||||
const { isLogin, getUserInfo } = userStore;
|
||||
const { isLogin } = userStore;
|
||||
|
||||
if (isLogin) {
|
||||
await getUserInfo(); // 初始化用户信息
|
||||
await getUserEnterpriseInfo();
|
||||
await initApp();
|
||||
|
||||
sidebarStore.startUnreadInfoPolling();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user