Skip to content
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

[layout] 404页面不显示 #95

Open
leftstick opened this issue Mar 16, 2020 · 0 comments
Open

[layout] 404页面不显示 #95

leftstick opened this issue Mar 16, 2020 · 0 comments
Assignees

Comments

@leftstick
Copy link
Contributor

复现repo: 404-never-shows

安装依赖后,启动yarn start

输入一个完全不存在的url,例如:http://localhost:8000/abcdefg, 页面依旧可以打开,可以看到是因为代码layout/index.tsx,对于不存在的路由,永远可以匹配第一项/,导致后面通过currentPathConfig来判断路由是否存在的地方,永远不起作用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants