|
|
@@ -1,39 +1,13 @@
|
|
|
import SelectLang from '@/components/SelectLang';
|
|
|
-import GlobalFooter from '@/components/GlobalFooter';
|
|
|
import { ConnectProps, ConnectState } from '@/models/connect';
|
|
|
import { connect } from 'dva';
|
|
|
-import { Icon } from 'antd';
|
|
|
import React from 'react';
|
|
|
import DocumentTitle from 'react-document-title';
|
|
|
import { formatMessage } from 'umi-plugin-react/locale';
|
|
|
import Link from 'umi/link';
|
|
|
import logo from '../assets/logo.svg';
|
|
|
import styles from './UserLayout.less';
|
|
|
-import { MenuDataItem, getPageTitle, getMenuData } from '@ant-design/pro-layout';
|
|
|
-
|
|
|
-const links = [
|
|
|
- {
|
|
|
- key: 'help',
|
|
|
- title: formatMessage({ id: 'layout.user.link.help' }),
|
|
|
- href: '',
|
|
|
- },
|
|
|
- {
|
|
|
- key: 'privacy',
|
|
|
- title: formatMessage({ id: 'layout.user.link.privacy' }),
|
|
|
- href: '',
|
|
|
- },
|
|
|
- {
|
|
|
- key: 'terms',
|
|
|
- title: formatMessage({ id: 'layout.user.link.terms' }),
|
|
|
- href: '',
|
|
|
- },
|
|
|
-];
|
|
|
-
|
|
|
-const copyright = (
|
|
|
- <>
|
|
|
- Copyright <Icon type="copyright" /> 2019 蚂蚁金服体验技术部出品
|
|
|
- </>
|
|
|
-);
|
|
|
+import { MenuDataItem, getPageTitle, getMenuData, DefaultFooter } from '@ant-design/pro-layout';
|
|
|
|
|
|
export interface UserLayoutProps extends ConnectProps {
|
|
|
breadcrumbNameMap: { [path: string]: MenuDataItem };
|
|
|
@@ -79,7 +53,7 @@ const UserLayout: React.SFC<UserLayoutProps> = props => {
|
|
|
</div>
|
|
|
{children}
|
|
|
</div>
|
|
|
- <GlobalFooter links={links} copyright={copyright} />
|
|
|
+ <DefaultFooter />
|
|
|
</div>
|
|
|
</DocumentTitle>
|
|
|
);
|