Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
fc3dfcdd
Commit
fc3dfcdd
authored
Nov 12, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update router README
parent
4c8fd542
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
README.md
src/router/README.md
+28
-4
No files found.
src/router/README.md
View file @
fc3dfcdd
...
@@ -80,14 +80,14 @@ const asyncRouterMap = [
...
@@ -80,14 +80,14 @@ const asyncRouterMap = [
path: '/dashboard/analysis',
path: '/dashboard/analysis',
name: 'Analysis',
name: 'Analysis',
component: () => import('@/views/dashboard/Analysis'),
component: () => import('@/views/dashboard/Analysis'),
meta: {title: '分析页',
hideHeader: true,
permission: ['dashboard']}
meta: {title: '分析页', permission: ['dashboard']}
},
},
{
{
path: '/dashboard/monitor',
path: '/dashboard/monitor',
name: 'Monitor',
name: 'Monitor',
hidden: true,
hidden: true,
component: () => import('@/views/dashboard/Monitor'),
component: () => import('@/views/dashboard/Monitor'),
meta: {title: '监控页',
hideHeader: true,
permission: ['dashboard']}
meta: {title: '监控页', permission: ['dashboard']}
},
},
{
{
path: '/dashboard/workplace',
path: '/dashboard/workplace',
...
@@ -97,6 +97,31 @@ const asyncRouterMap = [
...
@@ -97,6 +97,31 @@ const asyncRouterMap = [
}
}
]
]
},
},
// result
{
path: '/result',
name: 'result',
component: PageView,
redirect: '/result/success',
meta: { title: '结果页', icon: 'check-circle-o', permission: [ 'result' ] },
children: [
{
path: '/result/success',
name: 'ResultSuccess',
component: () => import(/* webpackChunkName: "result" */ '@/views/result/Success'),
// 该页面隐藏面包屑和页面标题栏
meta: { title: '成功', hiddenHeaderContent: true, permission: [ 'result' ] }
},
{
path: '/result/fail',
name: 'ResultFail',
component: () => import(/* webpackChunkName: "result" */ '@/views/result/Error'),
// 该页面隐藏面包屑和页面标题栏
meta: { title: '失败', hiddenHeaderContent: true, permission: [ 'result' ] }
}
]
},
...
...
]
]
},
},
...
@@ -105,5 +130,4 @@ const asyncRouterMap = [
...
@@ -105,5 +130,4 @@ const asyncRouterMap = [
> 1. 请注意 `component: () => import('..') ` 方式引入路由的页面组件为 懒加载模式。具体可以看 [Vue 官方文档](https://router.vuejs.org/zh/guide/advanced/lazy-loading.html)
> 1. 请注意 `component: () => import('..') ` 方式引入路由的页面组件为 懒加载模式。具体可以看 [Vue 官方文档](https://router.vuejs.org/zh/guide/advanced/lazy-loading.html)
> 2. 增加新的路由应该增加在 '/' (index) 路由的 `children` 内
> 2. 增加新的路由应该增加在 '/' (index) 路由的 `children` 内
>
> 3. `permission` 可以进行自定义修改,只需要对这个模块进行自定义修改即可 [src/store/modules/permission.js#L10](https://github.com/sendya/ant-design-pro-vue/blob/master/src/store/modules/permission.js#L10)
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