From 775083e152dcd1fa8d0b9271e8eee4e30b209349 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Fri, 11 Nov 2022 10:15:42 +0800 Subject: [PATCH] fix: axios --- yudao-ui-admin-vue3/src/config/axios/service.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/yudao-ui-admin-vue3/src/config/axios/service.ts b/yudao-ui-admin-vue3/src/config/axios/service.ts index 7ef424c98..14cf68b0d 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( // 2.1 刷新成功,则回放队列的请求 + 当前请求 setToken((await refreshTokenRes).data.data) config.headers!.Authorization = 'Bearer ' + getAccessToken() - service.defaults.headers.Authorization = 'Bearer ' + getAccessToken() requestList.forEach((cb: any) => { cb() })