12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- export default [
- {
- path: '/',
- component: '../layouts/BlankLayout',
- routes: [
- {
- path: '/user',
- component: '../layouts/UserLayout',
- routes: [
- {
- name: 'login',
- path: '/user/login',
- component: './User/login',
- },
- ],
- },
- {
- path: '/',
- component: '../layouts/SecurityLayout',
- routes: [
- {
- path: '/',
- component: '../layouts/BasicLayout',
- authority: ['admin', 'user'],
- routes: [
- {
- path: '/',
- redirect: '/welcome',
- },
- {
- path: '/welcome',
- name: 'welcome',
- icon: 'smile',
- component: './Welcome',
- },
- {
- path: '/admin',
- name: 'admin',
- icon: 'crown',
- component: './Admin',
- authority: ['admin'],
- routes: [
- {
- path: '/admin/sub-page',
- name: 'sub-page',
- icon: 'smile',
- component: './Welcome',
- authority: ['admin'],
- },
- ],
- },
- {
- name: 'list.table-list',
- icon: 'table',
- path: '/list',
- component: './TableList',
- },
- {
- component: './404',
- },
- ],
- },
- {
- component: './404',
- },
- ],
- },
- ],
- },
- {
- component: './404',
- },
- ];
|