From 64d15d8c26baae5bdff0dcfbcfdd4f13d219041c Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期四, 26 九月 2024 14:54:18 +0800
Subject: [PATCH] 修改注册功能url

---
 src/api/session.ts |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/api/session.ts b/src/api/session.ts
index ccdf1e5..031daf1 100644
--- a/src/api/session.ts
+++ b/src/api/session.ts
@@ -13,9 +13,15 @@
 }
 // 浼氳瘽鍒楄〃鍒嗛〉
 export function sessionListApiPage(data) {
-  return axios.get<ISessionListResult>(
-    `/api/conversation/list?modeltype=localragflow&dialogid=&page=${data.page}&per_page=${data.page_size}`,
-  );
+  if (data?.searchParam) {
+    return axios.get<ISessionListResult>(
+      `/api/conversation/list?modeltype=localragflow&search=${data.searchParam}&dialogid=&page=${data.page}&per_page=${data.page_size}`
+    );
+  } else {
+    return axios.get<ISessionListResult>(
+      `/api/conversation/list?modeltype=localragflow&dialogid=&page=${data.page}&per_page=${data.page_size}`
+    );
+  }
 }
 // 鍒犻櫎浼氳瘽
 export function deleteSessionApi(conversation_ids: string[]) {

--
Gitblit v1.8.0