| | |
| | | <span class="use_name">{{ firstUserCharacter }}</span> |
| | | </div> |
| | | <div class="isShow_Profile" v-show="isShowExitLogin"> |
| | | <div class="exit" @click="feedbackClick"><i class="ywifont ywicon-youxiang"></i> 用户反馈</div> |
| | | <div class="exit" @click="informationClick"><i class="ywifont ywicon-wode"></i> 我的信息</div> |
| | | <!-- <div class="exit" @click="feedbackClick"><i class="ywifont ywicon-youxiang"></i> 用户反馈</div> --> |
| | | <div class="exit" @click="logoutClick"><i class="ywifont ywicon-tuichu"></i> 退出登录</div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | <UserInformation v-model="userInformationVisible" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import QRCode from 'qrcodejs2-fixes'; |
| | | import { computed, nextTick, onMounted, ref, watch, watchEffect } from 'vue'; |
| | | import type { ChatRoomItem } from './components/types'; |
| | | import UserInformation from './components/UserInformation.vue'; |
| | | import { DeleteHistoryGroups, setHistoryGroupTitle } from '/@/api/ai/chat'; |
| | | import { SERVE_URL } from '/@/constants'; |
| | | import { useSearch } from '/@/hooks/useSearch'; |
| | |
| | | newChatRoomClick, |
| | | selectFirstRoom, |
| | | } from '/@/stores/chatRoom'; |
| | | |
| | | import emitter from '/@/utils/mitt'; |
| | | import { accessSessionKey, userNameKey } from '/@/utils/request'; |
| | | import { gotoRoute } from '/@/utils/route'; |
| | |
| | | }; |
| | | |
| | | //#endregion |
| | | //#region ====================== 我的信息 ====================== |
| | | const userInformationVisible = ref(false); |
| | | const informationClick = () => { |
| | | userInformationVisible.value = true; |
| | | }; |
| | | //#endregion |
| | | //#region ====================== 显示/退出登录 ====================== |
| | | //登录 |
| | | const openLoginDlg = async () => { |
| | |
| | | }); |
| | | onMounted(async () => { |
| | | selectFirstRoom(); |
| | | |
| | | emitter.on('openLoginDlg', () => { |
| | | if (isShowLogin.value || isLoginStatus.value) return; |
| | | openLoginDlg(); |