diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index e185f6a79d47510708af03eb529a69d8eafc707e..42713c4ef216871d7f59857e8a041cf3d893a322 100644 --- a/src/components/PageHeader/index.js +++ b/src/components/PageHeader/index.js @@ -4,7 +4,7 @@ import pathToRegexp from 'path-to-regexp'; import { Breadcrumb, Tabs } from 'antd'; import classNames from 'classnames'; import styles from './index.less'; -import { urlToList } from '../utils/pathTools'; +import { urlToList } from '../_utils/pathTools'; const { TabPane } = Tabs; export function getBreadcrumb(breadcrumbNameMap, url) { diff --git a/src/components/PageHeader/index.test.js b/src/components/PageHeader/index.test.js index d9aaa0004e7e682a690f2f3a59175abe9093a210..e4c44f1857cc2d49b68df20f386dfebc8816e7ae 100644 --- a/src/components/PageHeader/index.test.js +++ b/src/components/PageHeader/index.test.js @@ -1,5 +1,5 @@ import { getBreadcrumb } from './index'; -import { urlToList } from '../utils/pathTools'; +import { urlToList } from '../_utils/pathTools'; const routerData = { '/dashboard/analysis': { diff --git a/src/components/SiderMenu/SiderMenu.js b/src/components/SiderMenu/SiderMenu.js index 9b7597e5fbf498d6146802fdd4e6fd4a623d7276..e8e6d9e4f32dacce4a30899ad5bdbaed65555f12 100644 --- a/src/components/SiderMenu/SiderMenu.js +++ b/src/components/SiderMenu/SiderMenu.js @@ -3,7 +3,7 @@ import { Layout, Menu, Icon } from 'antd'; import pathToRegexp from 'path-to-regexp'; import { Link } from 'dva/router'; import styles from './index.less'; -import { urlToList } from '../utils/pathTools'; +import { urlToList } from '../_utils/pathTools'; const { Sider } = Layout; const { SubMenu } = Menu; diff --git a/src/components/utils/pathTools.js b/src/components/_utils/pathTools.js similarity index 100% rename from src/components/utils/pathTools.js rename to src/components/_utils/pathTools.js diff --git a/src/components/utils/pathTools.test.js b/src/components/_utils/pathTools.test.js similarity index 100% rename from src/components/utils/pathTools.test.js rename to src/components/_utils/pathTools.test.js