| | |
| | | <div class="top_text flex justify-between px-6 items-center" :class="sidebarIsShow ? 'px-6' : 'pl-[unset] pr-6'"> |
| | | <div class="flex-items-center"> |
| | | <div class="nav-menu"> |
| | | <router-link :to="{ path: '/ask_answer', query: { id: activeRoomId } }" class="nav-item" active-class="active"> |
| | | <router-link :to="firstToPath" class="nav-item" active-class="active"> |
| | | <i class="icon-park-outline-robot"></i> |
| | | 智能助手 |
| | | </router-link> |
| | |
| | | import { systemNotifyList } from '/@/api/ai/chat'; |
| | | import router from '/@/router'; |
| | | import pinia from '/@/stores'; |
| | | import { activeRoomId, isSharePage, newChatRoomClick } from '/@/stores/chatRoom'; |
| | | import { activeChatRoom, activeRoomId, isSharePage, newChatRoomClick } from '/@/stores/chatRoom'; |
| | | import { useThemeConfig } from '/@/stores/themeConfig'; |
| | | import emitter from '/@/utils/mitt'; |
| | | import { userInfoKey } from '/@/utils/request'; |
| | |
| | | announcementContent: '', |
| | | announcementTime: '', |
| | | }); |
| | | const firstToPath = computed(() => { |
| | | if (!activeChatRoom.value) |
| | | return { |
| | | path: '/home', |
| | | }; |
| | | const result = activeChatRoom.value.isInitial |
| | | ? { |
| | | path: '/home', |
| | | query: { |
| | | id: activeChatRoom.value.id, |
| | | }, |
| | | } |
| | | : { |
| | | path: '/ask_answer', |
| | | query: { id: activeChatRoom.value.id }, |
| | | }; |
| | | |
| | | |
| | | return result; |
| | | }); |
| | | |
| | | //#region ====================== 公告是否看过 ====================== |
| | | const userInfo = ref(Local.get(userInfoKey)); |