27 lines
623 B
TypeScript
27 lines
623 B
TypeScript
import { RouteRecordRaw } from 'vue-router'
|
|
|
|
// @ts-ignore
|
|
const router: RouteRecordRaw[] = [
|
|
{
|
|
path: '/users',
|
|
component: () => import('/admin/layout/index.vue'),
|
|
meta: { title: '用户管理', icon: 'user' },
|
|
children: [
|
|
{
|
|
path: 'index',
|
|
name: 'users',
|
|
meta: { title: '账号管理', icon: 'home' },
|
|
component: () => import('./user/index.vue'),
|
|
},
|
|
{
|
|
path: 'center',
|
|
name: 'center',
|
|
meta: { title: '个人中心', icon: 'home' },
|
|
component: () => import('./user/center.vue'),
|
|
},
|
|
],
|
|
},
|
|
]
|
|
|
|
export default router
|