Commit d9954616 authored by 陈帅's avatar 陈帅

remove unuse code

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