forked from imbytecat/fullstack-starter
feat: 添加自定义错误和404页面组件
- 添加错误组件以显示未处理的错误信息 - 将NotFound组件重命名为NotFoundComponent并更新显示文本为404 - Not Found。 - 使用自定义错误和未找到页面组件替换默认的错误和404提示。
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export function NotFound() {
|
||||
return <div>Not Found</div>
|
||||
export function NotFoundComponent() {
|
||||
return <div>404 - Not Found</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user