From 3a022dc2caa78267a681824ea1c303f140cd6797 Mon Sep 17 00:00:00 2001 From: liudong <liudong> Date: 星期五, 02 八月 2024 19:57:45 +0800 Subject: [PATCH] 智能体管理的页面开发和功能开发 --- src/views/session/sessionManager/index.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/session/sessionManager/index.vue b/src/views/session/sessionManager/index.vue index 6cdb28a..4c3b45a 100644 --- a/src/views/session/sessionManager/index.vue +++ b/src/views/session/sessionManager/index.vue @@ -25,20 +25,20 @@ const streamStr=ref(''); const modalObj=reactive({ add:false }); //鏌ヨ浼氳瘽鍒楄〃 - const querySessionList = async () => { + const querySessionList = async () => { const { code, data } =await sessionListApi(); - if (code === 200) { - sessionList.value = data; - if(Array.isArray(data)&&data.length>0){ - activeSessionId.value=data[0].id; - const res= await getSessionDetailsApi(data[0].id); - if(res.code===200){ - sessionDetailList.value=res.data.message; - refreshScroll(); + if (code === 200) { + sessionList.value = data; + if(Array.isArray(data)&&data.length>0){ + activeSessionId.value=data[0].id; + const res= await getSessionDetailsApi(data[0].id); + if(res.code===200){ + sessionDetailList.value=res.data.message; + refreshScroll(); + } } - } }else{ - Message.warning('鏌ヨ澶辫触'); + Message.warning('鏌ヨ澶辫触'); } }; //鏍规嵁浼氳瘽id鍒犻櫎浼氳瘽 @@ -142,7 +142,7 @@ </a-button> </template> <a-scrollbar class="left-list" style="height: 60vh;overflow-y: auto;"> - <div class="item" :class="{isLeftActive:activeSessionId===session.id}" v-for="session in sessionList" :key="session.id" @click="querySessionDetail(session)"> + <div class="item" :class="{ isLeftActive:activeSessionId===session.id }" v-for="session in sessionList" :key="session.id" @click="querySessionDetail(session)"> <div class="item-left"> <IconQuestionCircleFill/>銆� {{session.name}} @@ -238,7 +238,7 @@ </a-scrollbar> <div class="bottom"> <div class="input"> - <a-input v-model="inputMsg" @keydown.enter="sendMessage"> + <a-input v-model="inputMsg" @keydown.enter="sendMessage" placeholder="杈撳叆鎮ㄦ兂浜嗚В鐨勫唴瀹癸紝鎸塃nter鍙戦��"> <template #suffix> <icon-send style="cursor: pointer" @click="sendMessage"/> </template> -- Gitblit v1.8.0