Parcourir la source

知识库智能体管理的页面开发和功能开发

liudong il y a 2 ans
Parent
commit
25aa31845c

+ 4 - 4
src/api/interceptor.ts

@@ -41,8 +41,8 @@ axios.interceptors.request.use(
       }
       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 @@ axios.interceptors.response.use(
   (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 @@ axios.interceptors.response.use(
       response.config.url === '/base/login'
     ) {
       setAuthorization(response.headers.authorization);
-    }*/
+    }
     return res;
   },
   (error) => {

+ 2 - 1
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();