feat: 添加自定义错误和404页面组件

- 添加错误组件以显示未处理的错误信息
- 将NotFound组件重命名为NotFoundComponent并更新显示文本为404 - Not Found。
- 使用自定义错误和未找到页面组件替换默认的错误和404提示。
This commit is contained in:
2026-01-18 04:00:08 +08:00
parent 03c6b84a39
commit 7af770adef
3 changed files with 9 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
export function NotFound() {
return <div>Not Found</div>
export function NotFoundComponent() {
return <div>404 - Not Found</div>
}