You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
656 B
TypeScript
22 lines
656 B
TypeScript
export default [
|
|
{
|
|
path: '/user',
|
|
layout: false,
|
|
routes: [{ name: '登录', path: '/user/login', component: './User/Login' }],
|
|
},
|
|
{ path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
|
|
{
|
|
path: '/admin',
|
|
name: '管理页',
|
|
icon: 'crown',
|
|
access: 'canAdmin',
|
|
routes: [
|
|
{ path: '/admin', redirect: '/admin/sub-page' },
|
|
{ path: '/admin/sub-page', name: '二级管理页', component: './Admin' },
|
|
],
|
|
},
|
|
{ name: '查询表格', icon: 'table', path: '/list', component: './TableList' },
|
|
{ path: '/', redirect: '/welcome' },
|
|
{ path: '*', layout: false, component: './404' },
|
|
];
|