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