feat(auth): 实现登录注册功能并重构 App 组件
- 新增登录和注册页面组件
- 实现用户认证和权限管理逻辑
- 重构 App 组件,使用 Router 和 AuthProvider
- 添加管理员面板和论坛页面组件
Change-Id: Iaa4502616970e75e3268537f73c75dac8f60e24d
diff --git a/src/pages/NotFoundPage.jsx b/src/pages/NotFoundPage.jsx
new file mode 100644
index 0000000..8c174f2
--- /dev/null
+++ b/src/pages/NotFoundPage.jsx
@@ -0,0 +1,20 @@
+import React from 'react';
+import { Button, Result } from 'antd';
+import { Link } from 'react-router-dom';
+
+const NotFoundPage = () => {
+ return (
+ <Result
+ status="404"
+ title="404"
+ subTitle="抱歉,您访问的页面不存在。"
+ extra={
+ <Button type="primary">
+ <Link to="/">返回首页</Link>
+ </Button>
+ }
+ />
+ );
+};
+
+export default NotFoundPage;
\ No newline at end of file