From 4ae7bb8dd02a902f44460c40f84b177b0170fe3a Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期六, 17 八月 2024 15:50:32 +0800
Subject: [PATCH] 智能体和agent新建会话名称bug修改

---
 src/views/sessionManager/components/historySession.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/views/sessionManager/components/historySession.vue b/src/views/sessionManager/components/historySession.vue
index f4d386e..e7c9c5e 100644
--- a/src/views/sessionManager/components/historySession.vue
+++ b/src/views/sessionManager/components/historySession.vue
@@ -54,7 +54,7 @@
                       <img
                         :style="{ width: '16px' }"
                         alt="dessert"
-                        :src="session.avatar || imgSrc"
+                        :src="session.icon ? httpUrl + session.icon : imgSrc"
                       />
                       {{ session.name }}
                     </div>
@@ -112,6 +112,7 @@
 const searchValue = ref("");
 const selectValue = ref("");
 const sectionList = ref({});
+const httpUrl = localStorage.getItem('httpUrl');
 const imgSrc = ref(logo);
 const DialogList = async () => {
   const { code, data } = await getDialogListApi();

--
Gitblit v1.8.0