소스 검색

fix: 11111

outaozhen 3 년 전
부모
커밋
8bb263e976
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/user/Login/index.tsx

+ 2 - 2
src/pages/user/Login/index.tsx

@@ -37,7 +37,7 @@ const Login: React.FC = () => {
   const [type] = useState<string>('account')
   const { initialState, setInitialState } = useModel('@@initialState')
 
-  const { run } = useRequest(queryCurrentUser, {
+  const { run: loading } = useRequest(queryCurrentUser, {
     manual: true,
     onSuccess: async result => {
       setInitialState({
@@ -141,7 +141,7 @@ const Login: React.FC = () => {
                 },
                 render: (_, dom) => dom.pop(),
                 submitButtonProps: {
-                  // loading,
+                  loading,
                   size: 'large',
                   style: {
                     width: '100%'