From d17d3ac3da20d054223a0b1b31909bd0d9caad4d Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期一, 29 七月 2024 19:48:42 +0800
Subject: [PATCH] 知识库页面解析方法接口调用开发

---
 src/api/interceptor.ts |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/api/interceptor.ts b/src/api/interceptor.ts
index 09e9392..eb3f5b6 100644
--- a/src/api/interceptor.ts
+++ b/src/api/interceptor.ts
@@ -37,6 +37,7 @@
       }
       config.headers.Authorization = `${authorization}`;
     }
+    config.headers.Authorization = 'Ijg3NmFjZjJlNGIzMzExZWY4NzI0MDI0MmFjMTIwMDA2Ig.ZqNvxw.Kgp8PcT4n2cxpzxFrYHttO4i2Eo';
     return config;
   },
   (error) => {
@@ -50,7 +51,7 @@
     const res = response.data;
 
     // if the custom code is not 20000, it is judged as an error.
-    if ((res.retcode && res.retcode !== 0) || (res.code && res.code !== 20000)) {
+    /*if ((res.retcode && res.retcode !== 0) || (res.code && res.code !== 20000)) {
       Message.error({
         content: res.msg || 'Error',
         duration: 5 * 1000,
@@ -78,7 +79,7 @@
 
     if(response.config.url === '/v1/user/login'|| response.config.url === '/base/login')  {
       setAuthorization(response.headers.authorization);
-    }
+    }*/
     return res;
   },
   (error) => {

--
Gitblit v1.8.0