You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
一【提问背景】:
在axios拦截器处理401请求时,需要直接使用useHistory()钩子函数重定向到登陆界面,但被提示需要在组件中使用
二【问题现状】:
刚开始学习前端相关知识不太明白如何解决,查阅互联网资料没找到对应方法,还望大佬空闲指导一番^_^,以下是目前参考资料:
https://blog.csdn.net/weixin_58515303/article/details/121432440
https://www.bookstack.cn/read/umijs-3.x/spilt.23.config-README.zh-CN.md
三【个人尝试】
我想的是直接替换history,但在引入的时候被告知
Beta Was this translation helpful? Give feedback.
All reactions