|
@@ -4,7 +4,7 @@ import React, { useState } from 'react'
|
|
|
import ProForm, { ProFormCheckbox, ProFormText } from '@ant-design/pro-form'
|
|
|
import { useIntl, Link, history, FormattedMessage, SelectLang, useModel, useRequest } from 'umi'
|
|
|
import { login } from '@/services/api/login'
|
|
|
-import { currentAccount as querycurrentAccount } from '@/services/api/login'
|
|
|
+import { queryCurrentUser } from '@/services/api/login'
|
|
|
import consts from '@/utils/consts'
|
|
|
import styles from './index.less'
|
|
|
|
|
@@ -37,7 +37,7 @@ const Login: React.FC = () => {
|
|
|
const [type, setType] = useState<string>('account')
|
|
|
const { initialState, setInitialState } = useModel('@@initialState')
|
|
|
|
|
|
- const { run, loading } = useRequest(querycurrentAccount, {
|
|
|
+ const { run, loading } = useRequest(queryCurrentUser, {
|
|
|
manual: true,
|
|
|
onSuccess: async result => {
|
|
|
setInitialState({
|