From d498cdcf61fd8e2ec341cad3e7c21829ecef1672 Mon Sep 17 00:00:00 2001
From: sd <shidong@jhsoft.cc>
Date: 星期二, 26 八月 2025 17:44:18 +0800
Subject: [PATCH] 摄像机配置、数据推送和文搜万物 bug和样式修复; 知识库卡片样式调整参照大模型平台知识库样式。

---
 src/api/AiRetrievalView.ts |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/src/api/AiRetrievalView.ts b/src/api/AiRetrievalView.ts
index 368a7d0..1d98692 100644
--- a/src/api/AiRetrievalView.ts
+++ b/src/api/AiRetrievalView.ts
@@ -15,11 +15,23 @@
       params
     })
   },
-  getChatDetail(params) {//瀵硅瘽妫�绱�
-    return request({
-      url: '/api-v1/v1/record/chat',
-      method: 'post',
-      params
-    })
-  },
+  // getChatDetail(data) {//瀵硅瘽妫�绱�
+  //   return request({
+  //     url: '/api-v1/v1/record/chat',
+  //     method: 'post',
+  //     data,
+  //     headers: {
+  //       "Content-Type": "application/json",
+  //       "Accept":"text/event-stream",
+  //       "Cache-Control": "no-cache"
+  //     },
+  //   })
+  // },
+  getChatDetail(data) {
+    return fetch("/api-v1/v1/record/chat", { // 浣跨敤浠g悊璺緞
+      method: "POST",
+      headers: { "Content-Type": "application/json" },
+      body: JSON.stringify(data)
+    }); // 鐩存帴杩斿洖 fetch 鐨� Promise
+  }
 }
\ No newline at end of file

--
Gitblit v1.8.0