From 60ea8a700aff5f4ba735e421426c77339210cb89 Mon Sep 17 00:00:00 2001 From: liudong <liudong> Date: 星期一, 19 八月 2024 21:09:35 +0800 Subject: [PATCH] 智能体会话名称修改 --- src/api/session.ts | 8 +++++++- src/views/sessionManager/components/historySession.vue | 8 ++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/api/session.ts b/src/api/session.ts index 5f917c7..e7ab8ab 100644 --- a/src/api/session.ts +++ b/src/api/session.ts @@ -8,7 +8,13 @@ // 浼氳瘽鍒楄〃 export function sessionListApi(dialog_id) { return axios.get<ISessionListResult>( - "/api/conversation/list?modeltype=localragflow&dialogid=" + dialog_id + "/api/conversation/list?modeltype=localragflow&dialogid=" + dialog_id, + ); +} +// 浼氳瘽鍒楄〃鍒嗛〉 +export function sessionListApiPage(data) { + return axios.get<ISessionListResult>( + `/api/conversation/list?modeltype=localragflow&dialogid=&page=${data.page}&per_page=${data.page_size}`, ); } // 鍒犻櫎浼氳瘽 diff --git a/src/views/sessionManager/components/historySession.vue b/src/views/sessionManager/components/historySession.vue index e7c9c5e..30ee2ad 100644 --- a/src/views/sessionManager/components/historySession.vue +++ b/src/views/sessionManager/components/historySession.vue @@ -94,7 +94,7 @@ getDialogListApi, getSessionDetailsApi, deleteSessionApi, - sessionListApi + sessionListApiPage } from "@/api/session"; import { queryCanvasList } from "@/api/Agent"; @@ -163,7 +163,11 @@ // 鏌ヨ浼氳瘽鍒楄〃 const querySessionList = async (id) => { - const { code, data } = await sessionListApi(id); + const { code, data } = await sessionListApiPage({ + dialog_id: id, + page: 1, + page_size: 100 + }); if (code === 200) { sessionList.value = data.map((item) => { return { -- Gitblit v1.8.0