From 9446fa9ea44e458b773becc78b607ff03ff9b251 Mon Sep 17 00:00:00 2001 From: songguoqiang <765017469@qq.com> Date: Mon, 15 Jan 2024 10:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B8=E6=88=90goview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .env.production | 4 ++-- src/api/axios.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index 3d06589..761694b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # port -VITE_DEV_PORT = '8080' +VITE_DEV_PORT = '3000' # production path VITE_BASE_URL = 'http://127.0.0.1:12080' diff --git a/.env.production b/.env.production index 9bd9a34..b13bec8 100644 --- a/.env.production +++ b/.env.production @@ -1,8 +1,8 @@ # port -VITE_DEV_PORT = '8080' +VITE_DEV_PORT = '26111' # production path -VITE_BASE_URL = 'http://dev.ccwin-in.com:25100/api' +VITE_BASE_URL = 'http://10.140.10.4:26112' # 租户开关 VITE_APP_TENANT_ENABLE=false \ No newline at end of file diff --git a/src/api/axios.ts b/src/api/axios.ts index c1ed40d..1a1efda 100644 --- a/src/api/axios.ts +++ b/src/api/axios.ts @@ -40,7 +40,7 @@ axiosInstance.interceptors.request.use( // 获取 token // 重新登录 if (!info) { - routerTurnByName(PageEnum.BASE_LOGIN_NAME) + //routerTurnByName(PageEnum.BASE_LOGIN_NAME) return config } const userInfo = info[SystemStoreEnum.USER_INFO]