From 324db843282ae84085e52a7e8ad03d01a6fb52cc Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期四, 08 八月 2024 11:51:51 +0800
Subject: [PATCH] 配置上传图片bug页面修改

---
 src/api/interceptor.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 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) => {

--
Gitblit v1.8.0