|
@@ -3,7 +3,7 @@
|
3
|
3
|
* You can view component api by:
|
4
|
4
|
* https://github.com/ant-design/ant-design-pro-layout
|
5
|
5
|
*/
|
6
|
|
-import ProLayout, { DefaultFooter } from '@ant-design/pro-layout';
|
|
6
|
+import ProLayout from '@ant-design/pro-layout';
|
7
|
7
|
import React, { useEffect, useMemo } from 'react';
|
8
|
8
|
import { Link } from 'umi';
|
9
|
9
|
import { connect } from 'dva';
|
|
@@ -11,6 +11,7 @@ import { Icon, Result, Button } from 'antd';
|
11
|
11
|
import { formatMessage } from 'umi-plugin-react/locale';
|
12
|
12
|
import Authorized from '@/utils/Authorized';
|
13
|
13
|
import GlobalHeader from '@/components/GlobalHeader';
|
|
14
|
+import GlobalFooter from '@/components/GlobalFooter';
|
14
|
15
|
import { isAntDesignPro, getAuthorityFromRouter } from '@/utils/utils';
|
15
|
16
|
import logo from '../assets/logo.svg';
|
16
|
17
|
const noMatch = (
|
|
@@ -38,23 +39,7 @@ const menuDataRender = (menuRoles) => (menuList) =>
|
38
|
39
|
return Authorized.check(needAuth ? authority : undefined, localItem, null);
|
39
|
40
|
});
|
40
|
41
|
|
41
|
|
-const footerRender = () => {
|
42
|
|
- const copyright = `${(new Date()).getFullYear()} 云致科技`
|
43
|
|
-
|
44
|
|
- return (
|
45
|
|
- <DefaultFooter
|
46
|
|
- copyright={copyright}
|
47
|
|
- links={[
|
48
|
|
- // {
|
49
|
|
- // key: 'Ant Design Pro',
|
50
|
|
- // title: 'Ant Design Pro',
|
51
|
|
- // href: 'https://pro.ant.design',
|
52
|
|
- // blankTarget: true,
|
53
|
|
- // },
|
54
|
|
- ]}
|
55
|
|
- />
|
56
|
|
- );
|
57
|
|
-};
|
|
42
|
+const footerRender = () => <GlobalFooter />;
|
58
|
43
|
|
59
|
44
|
const BasicLayout = (props) => {
|
60
|
45
|
const {
|