From 5e6e726564e5cf1520f95b7f4f13707a39da4bad Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期五, 30 八月 2024 19:43:42 +0800
Subject: [PATCH] fix: 修改bug
---
src/views/sessionManager/components/chatMenu.vue | 63 +++++++++++++++++++++----------
1 files changed, 42 insertions(+), 21 deletions(-)
diff --git a/src/views/sessionManager/components/chatMenu.vue b/src/views/sessionManager/components/chatMenu.vue
index 79fdf84..b0c40fb 100644
--- a/src/views/sessionManager/components/chatMenu.vue
+++ b/src/views/sessionManager/components/chatMenu.vue
@@ -14,7 +14,11 @@
"
>
<div class="myAgentToolIcon___gaAKI myAgentToolIconNew___DBZrW">
- <img src="@/assets/images/talk.png" style="width: 24px" alt="" />
+ <img
+ src="@/assets/images/icon-new.png"
+ style="width: 24px"
+ alt=""
+ />
</div>
</div>
<div
@@ -27,8 +31,13 @@
"
>
<div class="myAgentToolIcon___gaAKI myAgentToolIconHistory___GTLWk">
- <img
+ <!-- <img
src="@/assets/images/historybg.png"
+ style="width: 24px"
+ alt=""
+ /> -->
+ <img
+ src="@/assets/images/icon-histy.png"
style="width: 24px"
alt=""
/>
@@ -43,9 +52,14 @@
}
"
>
- <div class="myAgentToolIcon___gaAKI myAgentToolIconSquare___Rj1o_"
- ><img src="@/assets/images/agent.png" style="width: 24px" alt=""
- /></div>
+ <div class="myAgentToolIcon___gaAKI myAgentToolIconSquare___Rj1o_">
+ <!-- <img src="@/assets/images/agent.png" style="width: 24px" alt=""/> -->
+ <img
+ src="@/assets/images/icon-zhi.png"
+ style="width: 24px"
+ alt=""
+ />
+ </div>
</div>
<div class="myAgentLine___Isl6E" style="margin-top: 4px"></div>
<div id="myAgentBox">
@@ -195,23 +209,30 @@
const createNewSession = async (session) => {
console.log(session, 'session');
// 鏌ヨ鍘嗗彶璁板綍
- if (session.app_type == '1') {
- // 鐢熸垚鏅鸿兘浣撴柊鐨勫璇�
- emit('createSession', session.app_id, `鍜�${session.name}鐨勪細璇漙);
- emit('changeAgentType', '1');
+
+ if (session.app_type == '3') {
+ //楂樼骇agent
+ EventBus.emit('createSeniorAgent', session);
+ emit('changeAgentType', '5');
} else {
- // 鐢熸垚agent鏂扮殑瀵硅瘽
- // agent瀵硅薄鏁版嵁灏佽
- const { code, data } = await getAgentSessionDetailsApi(session.app_id);
- if (code == 0) {
- console.log(data, '浼氳瘽璇︽儏');
- let sessionObj = {
- id: session.app_id,
- dsl: data.dsl,
- title: session.name,
- };
- EventBus.emit('createAgent', sessionObj);
- emit('changeAgentType', '2');
+ if (session.app_type == '1') {
+ // 鐢熸垚鏅鸿兘浣撴柊鐨勫璇�
+ emit('createSession', session.app_id, `鍜�${session.name}鐨勪細璇漙);
+ emit('changeAgentType', '1');
+ } else {
+ // 鐢熸垚agent鏂扮殑瀵硅瘽
+ // agent瀵硅薄鏁版嵁灏佽
+ const { code, data } = await getAgentSessionDetailsApi(session.app_id);
+ if (code == 0) {
+ console.log(data, '浼氳瘽璇︽儏');
+ let sessionObj = {
+ id: session.app_id,
+ dsl: data.dsl,
+ title: session.name,
+ };
+ EventBus.emit('createAgent', sessionObj);
+ emit('changeAgentType', '2');
+ }
}
}
};
--
Gitblit v1.8.0