|
@@ -9,7 +9,7 @@ import ProLayout, {
|
|
|
Settings,
|
|
|
DefaultFooter,
|
|
|
} from '@ant-design/pro-layout';
|
|
|
-import React, { useEffect } from 'react';
|
|
|
+import React from 'react';
|
|
|
import { Link, useIntl, connect, Dispatch } from 'umi';
|
|
|
// import { GithubOutlined } from '@ant-design/icons';
|
|
|
import { Result, Button } from 'antd';
|
|
@@ -81,17 +81,6 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
|
|
|
pathname: '/',
|
|
|
},
|
|
|
} = props;
|
|
|
- /**
|
|
|
- * constructor
|
|
|
- */
|
|
|
-
|
|
|
- useEffect(() => {
|
|
|
- if (dispatch) {
|
|
|
- dispatch({
|
|
|
- type: 'user/fetchCurrent',
|
|
|
- });
|
|
|
- }
|
|
|
- }, []);
|
|
|
/**
|
|
|
* init variables
|
|
|
*/
|