nili
3 years ago
1 changed files with 23 additions and 23 deletions
@ -1,26 +1,26 @@ |
|||
export default [ |
|||
{ |
|||
path: '/user', |
|||
layout: false, |
|||
routes: [ |
|||
{ path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] }, |
|||
{ component: './404' }, |
|||
], |
|||
}, |
|||
{ path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' }, |
|||
{ |
|||
path: '/admin', |
|||
name: '管理页', |
|||
icon: 'crown', |
|||
access: 'canAdmin', |
|||
component: './Admin', |
|||
routes: [ |
|||
{ path: '/admin/sub-page', name: '二级管理页', icon: 'smile', component: './Welcome' }, |
|||
{ component: './404' }, |
|||
], |
|||
}, |
|||
{ name: '查询表格', icon: 'table', path: '/list', component: './TableList' }, |
|||
{ path: '/', redirect: '/welcome' }, |
|||
{ icon: 'smile', path: '/poem', component: './PoemPage' }, |
|||
// {
|
|||
// path: '/user',
|
|||
// layout: false,
|
|||
// routes: [
|
|||
// { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
|
|||
// { component: './404' },
|
|||
// ],
|
|||
// },
|
|||
// { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
|
|||
// {
|
|||
// path: '/admin',
|
|||
// name: '管理页',
|
|||
// icon: 'crown',
|
|||
// access: 'canAdmin',
|
|||
// component: './Admin',
|
|||
// routes: [
|
|||
// { path: '/admin/sub-page', name: '二级管理页', icon: 'smile', component: './Welcome' },
|
|||
// { component: './404' },
|
|||
// ],
|
|||
// },
|
|||
// { name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
|
|||
{ path: '/', redirect: '/poem' }, |
|||
{ name: '诗词', icon: 'smile', path: '/poem', component: './PoemPage' }, |
|||
{ component: './404' }, |
|||
]; |
|||
|
Loading…
Reference in new issue