From 998d23db61aaa248e26644bdac7de0fdd85b8d76 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 17 Nov 2022 17:10:42 +0800 Subject: [PATCH] Revert "fix: refreshToken" This reverts commit 34d8954469cc9ec2fa7dabf29fc2cf1171a5f8c6. --- yudao-ui-admin-vue3/src/config/axios/service.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/yudao-ui-admin-vue3/src/config/axios/service.ts b/yudao-ui-admin-vue3/src/config/axios/service.ts index 0d864a938..a392702bb 100644 --- a/yudao-ui-admin-vue3/src/config/axios/service.ts +++ b/yudao-ui-admin-vue3/src/config/axios/service.ts @@ -129,7 +129,6 @@ service.interceptors.response.use( isRefreshToken = true // 1. 如果获取不到刷新令牌,则只能执行登出操作 if (!getRefreshToken()) { - console.info(getRefreshToken()) return handleAuthorized() } // 2. 进行刷新访问令牌 @@ -207,7 +206,6 @@ service.interceptors.response.use( ) const refreshToken = async () => { - axios.defaults.headers.common['tenant-id'] = getTenantId() return await axios.post(base_url + '/system/auth/refresh-token?refreshToken=' + getRefreshToken()) } const handleAuthorized = () => {