hash路由对应hash路由 #267
Unanswered
aide-cloud
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
基座应用和主应用都是creat-react-app创建的,路由采用的是react-router-dom 6.2.1
在当前环境中,怎么实现主应用为hash路由,子应用也为hash路由的跳转呢?
直接采用navigate(data.path as string, { replace: true })方式,在子应用第一次进入能够跳转成功,但是当再次访问该路由,旧提示找不到路由了
子应用代码
主应用代码
Beta Was this translation helpful? Give feedback.
All reactions