From 189bd5b45a1a4735f72fc57497e88168f3d14396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B9=E6=B3=A1=E6=B3=A1=E7=9A=84=E5=9B=A2=E5=AD=90?= Date: Tue, 19 Sep 2023 20:15:10 +0800 Subject: [PATCH] feat:login --- threadpool/console-new/src/page/login/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/threadpool/console-new/src/page/login/index.tsx b/threadpool/console-new/src/page/login/index.tsx index cd4f37ba..46d4a5d3 100644 --- a/threadpool/console-new/src/page/login/index.tsx +++ b/threadpool/console-new/src/page/login/index.tsx @@ -1,10 +1,10 @@ import { Form, Input, Button } from 'antd'; -import React, { useState, useContext } from 'react'; +import React, { useContext } from 'react'; import { getLogin } from './service'; import { MyContext } from '@/context'; const Login = (props: any) => { - const { userInfo, setUserInfo } = useContext(MyContext); + const { setUserInfo } = useContext(MyContext); const data = { passwordType: 'password',