Commit d9954616 authored by 陈帅's avatar 陈帅

remove unuse code

parent 4bc24ec1
......@@ -12,13 +12,13 @@ import logo from '../assets/logo.svg';
import Authorized from '@/utils/Authorized';
import { formatMessage } from 'umi-plugin-react/locale';
import {
BasicLayout as BasicLayoutComponents,
BasicLayoutProps as BasicLayoutComponentsProps,
BasicLayout as ProLayoutComponents,
BasicLayoutProps as ProLayoutComponentsProps,
MenuDataItem,
Settings,
} from '@ant-design/pro-layout';
import Link from 'umi/link';
export interface BasicLayoutProps extends BasicLayoutComponentsProps, ConnectProps {
export interface BasicLayoutProps extends ProLayoutComponentsProps, ConnectProps {
breadcrumbNameMap: {
[path: string]: MenuDataItem;
};
......@@ -68,7 +68,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
});
return (
<BasicLayoutComponents
<ProLayoutComponents
logo={logo}
onCollapse={handleMenuCollapse}
menuItemRender={(menuItemProps, defaultDom) => {
......@@ -93,7 +93,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = props => {
{...settings}
>
{children}
</BasicLayoutComponents>
</ProLayoutComponents>
);
};
......
......@@ -2,9 +2,9 @@ import React from 'react';
export default () => (
<p style={{ textAlign: 'center' }}>
想要添加更多页面?请参考{' '}
Want to add more pages? Please refer to{' '}
<a href="https://umijs.org/guide/block.html" target="_blank" rel="noopener noreferrer">
umi 区块
umi block
</a>
</p>
......
declare module 'slash2';
declare module 'antd-pro-merge-less';
declare module 'antd-theme-webpack-plugin';
declare module '*.css';
declare module '*.less';
declare module '*.scss';
......@@ -15,12 +19,7 @@ declare module 'react-copy-to-clipboard';
declare module 'react-fittext';
declare module '@antv/data-set';
declare module 'nzh/cn';
declare var APP_TYPE: string;
declare module 'memoize-one' {
function memoizeOne<T extends (...args: any[]) => any>(
resultFn: T,
isEqual?: (a: any, b: any, index: number) => boolean,
): T;
export default memoizeOne;
}
// preview.pro.ant.design only do not use in your production ;
// preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
declare let ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' | undefined;
declare module 'slash2';
declare module 'antd-pro-merge-less';
declare module 'antd-theme-webpack-plugin';
declare let ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' | undefined;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment