From 08456b986d21c7e870793272a6d3696a98a95838 Mon Sep 17 00:00:00 2001 From: jim Date: Tue, 27 Mar 2018 11:04:07 +0800 Subject: [PATCH] Modify the path for easy publishing --- src/components/PageHeader/index.js | 2 +- src/components/PageHeader/index.test.js | 2 +- src/components/SiderMenu/SiderMenu.js | 2 +- src/components/{utils => _utils}/pathTools.js | 0 src/components/{utils => _utils}/pathTools.test.js | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename src/components/{utils => _utils}/pathTools.js (100%) rename src/components/{utils => _utils}/pathTools.test.js (100%) diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js index e185f6a7..42713c4e 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 d9aaa000..e4c44f18 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 9b7597e5..e8e6d9e4 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 -- GitLab