修改刷新token问题

master
lemon橪 2022-03-23 20:03:06 +08:00
parent ea60742d82
commit c756223363
1 changed files with 4 additions and 4 deletions

View File

@ -108,10 +108,10 @@ http.interceptors.response.use(
isNavigateTo = false isNavigateTo = false
/* 请求之后拦截器。可以使用async await 做异步操作 */ /* 请求之后拦截器。可以使用async await 做异步操作 */
// token存在并且token过期 // token存在并且token过期
if (isRefreshing && response.statusCode === 403) { // if (isRefreshing && response.statusCode === 403) {
cleanStorage(); // cleanStorage();
isRefreshing = false; // isRefreshing = false;
} // }
let token = storage.getAccessToken(); let token = storage.getAccessToken();
if ( if (