This commit is contained in:
学习很差啦
2022-09-14 10:51:18 +08:00
13 changed files with 108 additions and 35 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)