Skip to content

Commit

Permalink
style: 优化404页面样式
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Nov 1, 2024
1 parent 80ea4a7 commit 99d41cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/not-fount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ function NotFount() {
}, 1000);
}, [router]);

return <div>404------1s后跳转到首页</div>;
return (
<div style={{ position: 'fixed', top: '50%', left: '50%', transform: 'translate(-50%, -50%)' }}>
404------(1s后跳转到首页)
</div>
);
}

export default NotFount;

0 comments on commit 99d41cb

Please sign in to comment.