Does the vue-resource interceptor set a new request header Authorization after the access_token expires?

the project uses oauth authentication to determine whether the access_token has expired on each request in the interceptor. If it has expired, reacquire the access_token, and modify the Authorization, of the request header of the current request to the newly acquired access_token, but from the network, the Authorization is still the old value.

clipboard.png

Mar.11,2021

I drink one:
it is recommended to use axios instead.
the component you are using now has been officially deprecated.

Menu