feat: add default 404 for gen conventional routes #5363
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
npm test
passesDescription of change
对 #5349 的另一种解法,不使用插件的方式,直接修复
getConventionalRoutes.ts
中的getRoutes
函数any feature?
为约定式路由增加默认 404 路由
/404.tsx
路由组件的情况下,/
一层路径下才有 404 路由close 约定路由 404.js 没有生效 #4437 feat: add 404 plugin #4987 umi最新版本使用约定式路由404页面出不来,随便输入路由都是空白页面并未渲染404页面。 #5081 约定路由和 404.tsx 好像不兼容。 #5085 开发环境约定式路由页面不存在无法跳转404页面 #5227