From a0a6744404e0928e340396879bd6b5f9f1db21b3 Mon Sep 17 00:00:00 2001 From: none Date: Tue, 21 Mar 2023 13:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.tsx | 6 +++++- src/routes/index.tsx | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index b49bd5f..efffc50 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -1,11 +1,13 @@ import { Button } from "antd"; import { useDispatch, useSelector } from "react-redux"; import { loginAction, logoutAction } from "../../store/user/loginUserSlice"; -export const LoginPage = () => { + +const LoginPage = () => { const dispatch = useDispatch(); const loginState = useSelector((state: any) => { return state.loginUser.value; }); + return ( <>