WangDL 4dad572731 feat: add admin layout, auth, user management, and routing
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-21 17:19:58 +08:00

21 lines
576 B
TypeScript

import { Result, Button } from 'antd'
import { useNavigate } from 'react-router-dom'
export default function NotFoundPage() {
const navigate = useNavigate()
return (
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh' }}>
<Result
status="404"
title="页面不存在"
subTitle="请检查 URL 地址是否正确。"
extra={
<Button type="primary" onClick={() => navigate('/', { replace: true })}>
</Button>
}
/>
</div>
)
}