角度刷新令牌拦截器仅重新发送一个请求

在我的应用中,两个Http请求作为并发调用。两者都返回未授权(401)。获取新令牌后,我的拦截器仅重新发送第一个Http请求。

首先,请原谅我发送照片而不是使用普通代码;只是因为一些限制!

我的HTTP拦截器代码:

enter image description here enter image description here

提示:可能“ else”块代码不起作用。

enter image description here

my browser console network

控制台中的日志顺序:

enter image description here