Ant design pro page componentDidMount requests data. The request is successful at the beginning, and will be automatically reported to 401 after a while.

after a successful login, dispatch sends a request in componentDidMount. At first, the request is successful, but after a while, the request automatically fails, reporting an error of 401, but it is good to log in again.

clipboard.png

clipboard.png

Mar.05,2021
Menu