From 33f2341ed3a0a9e06aecd5477971f3f8c8abdeac Mon Sep 17 00:00:00 2001 From: callmeyan Date: Mon, 10 Jun 2024 10:25:25 +0800 Subject: [PATCH] remove mock login --- src/pages/auth/login.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/pages/auth/login.tsx b/src/pages/auth/login.tsx index ab4f454..bbc4d0f 100644 --- a/src/pages/auth/login.tsx +++ b/src/pages/auth/login.tsx @@ -1,4 +1,4 @@ -import {Button, Space, Spin, Typography} from "@douyinfe/semi-ui"; +import {Space, Spin, Typography} from "@douyinfe/semi-ui"; import {useTranslation} from 'react-i18next'; import {useEffect} from "react"; import {useSetState} from "ahooks"; @@ -29,7 +29,7 @@ const SubmitContainer = styled.div({ const LoginURL = getAppUrl() + '/login/auth' const AuthLogin = ({type}:{type?:'auth'|'login'}) => { - const {login, mockLogin,user} = useAuth(); + const {login,user} = useAuth(); const navigate = useNavigate(); const [state, setState] = useSetState({ showLogin: false, @@ -75,12 +75,6 @@ const AuthLogin = ({type}:{type?:'auth'|'login'}) => { } }, []) - const handleMockLogin = () => { - mockLogin().then(() => { - navigate('/dashboard') - }) - } - return ( @@ -99,8 +93,6 @@ const AuthLogin = ({type}:{type?:'auth'|'login'}) => { > {t('login.submit')} - } )