diff --git a/src/components/CopyBlock/index.tsx b/src/components/CopyBlock/index.tsx index fb9d8ac09a40007aaab24e13a29fc1dbc13658ef..810e9c1d0733095f9741094afa79b3916122dc5a 100644 --- a/src/components/CopyBlock/index.tsx +++ b/src/components/CopyBlock/index.tsx @@ -1,7 +1,7 @@ import { Icon, Popover, Typography } from 'antd'; +import React, { useRef } from 'react'; import { FormattedMessage } from 'umi-plugin-react/locale'; -import React, { useRef } from 'react'; import { connect } from 'dva'; import { isAntDesignPro } from '@/utils/utils'; import styles from './index.less'; diff --git a/src/components/GlobalHeader/AvatarDropdown.tsx b/src/components/GlobalHeader/AvatarDropdown.tsx index 2d105d51eb91427deb423e0925e1e51e3bfe50dc..d23380434a8d2f300a38d6ebf8974ec2df063626 100644 --- a/src/components/GlobalHeader/AvatarDropdown.tsx +++ b/src/components/GlobalHeader/AvatarDropdown.tsx @@ -1,5 +1,6 @@ import { Avatar, Icon, Menu, Spin } from 'antd'; import { ConnectProps, ConnectState } from '@/models/connect'; + import { ClickParam } from 'antd/es/menu'; import { CurrentUser } from '@/models/user'; import { FormattedMessage } from 'umi-plugin-react/locale'; diff --git a/src/components/HeaderSearch/index.tsx b/src/components/HeaderSearch/index.tsx index a6e8698e9259502dce39e7643c549fd92cf09575..85258d47096be9e6e42bce19ae0f29714b6d8a9e 100644 --- a/src/components/HeaderSearch/index.tsx +++ b/src/components/HeaderSearch/index.tsx @@ -1,7 +1,7 @@ import { AutoComplete, Icon, Input } from 'antd'; +import { AutoCompleteProps, DataSourceItemType } from 'antd/es/auto-complete'; import React, { Component } from 'react'; -import { DataSourceItemType, AutoCompleteProps } from 'antd/es/auto-complete'; import classNames from 'classnames'; import debounce from 'lodash/debounce'; import styles from './index.less'; diff --git a/src/components/SelectLang/index.tsx b/src/components/SelectLang/index.tsx index c45354dbe8a05720231d268cca84d5be5906dff3..1610646e6048ffeea7abbd343787f857b05d4275 100644 --- a/src/components/SelectLang/index.tsx +++ b/src/components/SelectLang/index.tsx @@ -1,5 +1,6 @@ import { Icon, Menu } from 'antd'; import { formatMessage, getLocale, setLocale } from 'umi-plugin-react/locale'; + import { ClickParam } from 'antd/es/menu'; import React from 'react'; import classNames from 'classnames'; diff --git a/src/layouts/UserLayout.tsx b/src/layouts/UserLayout.tsx index 55cf9314114bd0e1283f2a0bf19ee15cd2215a1a..30397dd3f2a4a78a385f86b45a6d67f56b2ee888 100644 --- a/src/layouts/UserLayout.tsx +++ b/src/layouts/UserLayout.tsx @@ -1,5 +1,6 @@ import { ConnectProps, ConnectState } from '@/models/connect'; import { DefaultFooter, MenuDataItem, getMenuData, getPageTitle } from '@ant-design/pro-layout'; + import DocumentTitle from 'react-document-title'; import Link from 'umi/link'; import React from 'react'; diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 80fe09c9427ee294a7c8385cf8b1083b0dac3e4d..47d6df7008c309f839cc14706fdd75c7ec3ca9fc 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -1,5 +1,5 @@ -import React from 'react'; import { Button } from 'antd'; +import React from 'react'; import router from 'umi/router'; // 这里应该使用 antd 的 404 result 组件, diff --git a/src/pages/Authorized.tsx b/src/pages/Authorized.tsx index 8de52d42ccea89b2d0b9809e8e519d9c57b140ce..1bfd82670bf4c1a9fcdfb249b3b9654b479c057f 100644 --- a/src/pages/Authorized.tsx +++ b/src/pages/Authorized.tsx @@ -1,4 +1,5 @@ import { ConnectProps, ConnectState, Route, UserModelState } from '@/models/connect'; + import Authorized from '@/utils/Authorized'; import React from 'react'; import Redirect from 'umi/redirect';