Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
08456b98
Commit
08456b98
authored
Mar 27, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify the path for easy publishing
parent
420b2976
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
3 deletions
+3
-3
src/components/PageHeader/index.js
src/components/PageHeader/index.js
+1
-1
src/components/PageHeader/index.test.js
src/components/PageHeader/index.test.js
+1
-1
src/components/SiderMenu/SiderMenu.js
src/components/SiderMenu/SiderMenu.js
+1
-1
src/components/_utils/pathTools.js
src/components/_utils/pathTools.js
+0
-0
src/components/_utils/pathTools.test.js
src/components/_utils/pathTools.test.js
+0
-0
No files found.
src/components/PageHeader/index.js
View file @
08456b98
...
@@ -4,7 +4,7 @@ import pathToRegexp from 'path-to-regexp';
...
@@ -4,7 +4,7 @@ import pathToRegexp from 'path-to-regexp';
import
{
Breadcrumb
,
Tabs
}
from
'
antd
'
;
import
{
Breadcrumb
,
Tabs
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
classNames
from
'
classnames
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
import
{
urlToList
}
from
'
../utils/pathTools
'
;
import
{
urlToList
}
from
'
../
_
utils/pathTools
'
;
const
{
TabPane
}
=
Tabs
;
const
{
TabPane
}
=
Tabs
;
export
function
getBreadcrumb
(
breadcrumbNameMap
,
url
)
{
export
function
getBreadcrumb
(
breadcrumbNameMap
,
url
)
{
...
...
src/components/PageHeader/index.test.js
View file @
08456b98
import
{
getBreadcrumb
}
from
'
./index
'
;
import
{
getBreadcrumb
}
from
'
./index
'
;
import
{
urlToList
}
from
'
../utils/pathTools
'
;
import
{
urlToList
}
from
'
../
_
utils/pathTools
'
;
const
routerData
=
{
const
routerData
=
{
'
/dashboard/analysis
'
:
{
'
/dashboard/analysis
'
:
{
...
...
src/components/SiderMenu/SiderMenu.js
View file @
08456b98
...
@@ -3,7 +3,7 @@ import { Layout, Menu, Icon } from 'antd';
...
@@ -3,7 +3,7 @@ import { Layout, Menu, Icon } from 'antd';
import
pathToRegexp
from
'
path-to-regexp
'
;
import
pathToRegexp
from
'
path-to-regexp
'
;
import
{
Link
}
from
'
dva/router
'
;
import
{
Link
}
from
'
dva/router
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
import
{
urlToList
}
from
'
../utils/pathTools
'
;
import
{
urlToList
}
from
'
../
_
utils/pathTools
'
;
const
{
Sider
}
=
Layout
;
const
{
Sider
}
=
Layout
;
const
{
SubMenu
}
=
Menu
;
const
{
SubMenu
}
=
Menu
;
...
...
src/components/utils/pathTools.js
→
src/components/
_
utils/pathTools.js
View file @
08456b98
File moved
src/components/utils/pathTools.test.js
→
src/components/
_
utils/pathTools.test.js
View file @
08456b98
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment