From 25aa31845cebacd5f522dd6fa2fad4ea700e8544 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期一, 05 八月 2024 15:04:11 +0800
Subject: [PATCH] 知识库智能体管理的页面开发和功能开发
---
src/api/interceptor.ts | 8 ++++----
src/views/dmx/IntelligentAgent/components/addAgent.vue | 3 ++-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/api/interceptor.ts b/src/api/interceptor.ts
index f094164..a58d192 100644
--- a/src/api/interceptor.ts
+++ b/src/api/interceptor.ts
@@ -41,8 +41,8 @@
}
config.headers.Authorization = `${authorization}`;
}
- config.headers.Authorization =
- 'ImE4NGQ4ZWNjNGVmYjExZWZiZjRkMDI0MmFjMTIwMDA2Ig.ZqnIBw.ZX7_UxnSBKu8x_riQ5FrHLMAS78';
+ // config.headers.Authorization =
+ // 'ImE4NGQ4ZWNjNGVmYjExZWZiZjRkMDI0MmFjMTIwMDA2Ig.ZqnIBw.ZX7_UxnSBKu8x_riQ5FrHLMAS78';
return config;
},
(error) => {
@@ -55,7 +55,7 @@
(response: AxiosResponse<HttpResponse>) => {
const res = response.data;
// if the custom code is not 20000, it is judged as an error.
- /*if (
+ if (
(res.retcode && res.retcode !== 0) ||
(res.code && res.code !== 20000 && res.code !== 200)
) {
@@ -88,7 +88,7 @@
response.config.url === '/base/login'
) {
setAuthorization(response.headers.authorization);
- }*/
+ }
return res;
},
(error) => {
diff --git a/src/views/dmx/IntelligentAgent/components/addAgent.vue b/src/views/dmx/IntelligentAgent/components/addAgent.vue
index 8e609d1..e8562b7 100644
--- a/src/views/dmx/IntelligentAgent/components/addAgent.vue
+++ b/src/views/dmx/IntelligentAgent/components/addAgent.vue
@@ -138,7 +138,8 @@
'浣犵殑浠诲姟鏄� XX 锛岄渶瑕佹寜鐓т互涓嬫楠ゆ墽琛岋細\n' +
'1. XX\n' +
'2. XX\n' +
- '3. 鈥n';
+ '3. 鈥n'+
+ '{knowledge}';
};
const file = ref();
--
Gitblit v1.8.0