优化部分代码

This commit is contained in:
学习很差啦
2022-08-25 12:46:52 +08:00
parent cbd73ae638
commit 6bb8ca73d3
7 changed files with 15 additions and 11 deletions

View File

@@ -121,6 +121,7 @@ http.interceptors.response.use(
if (!isRefreshing) {
console.log('旧token',token)
isRefreshing = true;
storage.setAccessToken('')
let oldRefreshToken = storage.getRefreshToken();
//调用刷新token的接口
return refreshTokenFn(oldRefreshToken)