-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
子项目成功加载但是在render的下一帧就404了,或许是路由配置有问题,请教谢谢 #2985
Comments
现在发现了是因为之前404的路由path写成了 虽然能够见到子项目了,但是console种其实能看出以下问题: 也就是(似乎)依然因为 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happens?
我像这样注册了我的umi子项目进行测试:
这便是umi子项目sub-app-2的.umirc.ts中的配置:
由于我选用了一个开源的叫做like-admin的一个Vue3项目作为基座,它的菜单和路由结构是类似这样:
也就是类似
/目录/路由
的结构;然后在进入子项目2也就是我们的测试目标时在好像渲染了子项目的一瞬间跳进了404出现了如下的问题:对
http://localhost:5173/microapp/sub-app-2/home
出现了404,这个在我曾经测试的一个umi4分别作为基座和子项目测试时候并没有出现感觉也不该出现这种成功加载render了子项目但是路由404了,我很好奇是不是我的哪里router配置出了问题?很困惑,非常感谢来帮助我
Mini Showcase Repository(REQUIRED)
我的demo的repo
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
The text was updated successfully, but these errors were encountered: