Skip to content

Commit

Permalink
update: 用户协议和隐私政策跳转
Browse files Browse the repository at this point in the history
reason:
  • Loading branch information
lorzzn committed Apr 18, 2024
1 parent 656c37b commit 6b8dfeb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ const LoginForm: FC<LoginFormProps> = ({ onLogin }) => {
label={
<span className="text-sm flex items-center space-x-1 leading-4">
<span>接受</span>
<a className="text-blue-500 hover:text-blue-400" href="/">
<a className="text-blue-500 hover:text-blue-400" href="/tos">
用户协议
</a>
<span></span>
<a className="text-blue-500 hover:text-blue-400" href="/">
<a className="text-blue-500 hover:text-blue-400" href="/tos">
隐私政策
</a>
</span>
Expand Down
2 changes: 2 additions & 0 deletions src/layouts/components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const Search = lazy(() => import("@/pages/Search"))
const Tags = lazy(() => import("@/pages/Tags"))
const Tag = lazy(() => import("@/pages/Tag"))
const Login = lazy(() => import("@/pages/Login"))
const Tos = lazy(() => import("@/pages/Tos"))

const NotFoundPage = lazy(() => import("@/pages/BadStatus/404"))
const ServerErrorPage = lazy(() => import("@/pages/BadStatus/500"))
Expand Down Expand Up @@ -65,6 +66,7 @@ const Content: FC = () => {
}
/>
<Route path="/login" Component={Login} />
<Route path="/tos" Component={Tos} />
<Route
path="/search"
element={
Expand Down
12 changes: 12 additions & 0 deletions src/pages/Tos/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { FC } from "react"

const Tos: FC = () => {
return (
<div className="pt-24 flex-1 flex flex-col items-center">
<div className="text-lg">用户协议和隐私政策</div>
<div>...</div>
</div>
)
}

export default Tos

0 comments on commit 6b8dfeb

Please sign in to comment.