From 9069918d87026563d647f488a8c0e5105093ea80 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期四, 31 十月 2024 10:18:28 +0800
Subject: [PATCH] 优化部分页面及配置

---
 src/config/axios/index.ts   |    2 +-
 src/config/axios/service.ts |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/config/axios/index.ts b/src/config/axios/index.ts
index 1f6ee34..1a43a90 100644
--- a/src/config/axios/index.ts
+++ b/src/config/axios/index.ts
@@ -15,7 +15,7 @@
     responseType: responseType,
     headers: {
       'Content-Type': headersType || default_headers,
-      'tenant-id': 172
+      'tenant-id': import.meta.env.VITE_TENANT_ID
     }
   })
 }
diff --git a/src/config/axios/service.ts b/src/config/axios/service.ts
index ca80c90..7e6ac07 100644
--- a/src/config/axios/service.ts
+++ b/src/config/axios/service.ts
@@ -201,7 +201,7 @@
 
 const refreshToken = async () => {
   axios.defaults.headers.common['tenant-id'] = getTenantId()
-  return await axios.post(base_url + 'http://172.16.8.100:48080/admin-api/system/auth/refresh-token?refreshToken=' + getRefreshToken())
+  return await axios.post('http://localhost:48080/admin-api/system/auth/refresh-token?refreshToken=' + getRefreshToken())
 }
 const handleAuthorized = () => {
   const { t } = useI18n()

--
Gitblit v1.9.3