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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eaa6e5-1fd7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eaa6e5-1fd7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?