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',