import type { RouteRecordRaw } from 'vue-router' import Layout from '@/layout/index.vue' const routes: RouteRecordRaw[] = [ { path: '/login', name: 'Login', component: () => import('@/views/login/index.vue'), meta: { title: '登录', hidden: true }, }, { path: '/', component: Layout, redirect: '/dashboard', children: [ { path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index.vue'), meta: { title: '仪表盘', icon: 'Odometer' }, }, { path: 'member/list', name: 'MemberList', component: () => import('@/views/member/index.vue'), meta: { title: '会员管理', icon: 'User' }, }, { path: 'member/card', name: 'MemberCard', component: () => import('@/views/memberCard/index.vue'), meta: { title: '会员卡管理', icon: 'CreditCard' }, }, { path: 'checkIn', name: 'CheckIn', component: () => import('@/views/checkIn/index.vue'), meta: { title: '签到明细', icon: 'Checked' }, }, { path: 'groupCourse/list', name: 'GroupCourseList', component: () => import('@/views/groupCourse/index.vue'), meta: { title: '团课管理', icon: 'Calendar' }, }, { path: 'groupCourse/type', name: 'GroupCourseType', component: () => import('@/views/groupCourseType/index.vue'), meta: { title: '类型管理', icon: 'SetUp' }, }, { path: 'groupCourse/recommend', name: 'GroupCourseRecommend', component: () => import('@/views/groupCourseRecommend/index.vue'), meta: { title: '推荐团课', icon: 'Star' }, }, { path: 'datacount', name: 'DataCount', component: () => import('@/views/datacount/index.vue'), meta: { title: '数据报表', icon: 'DataAnalysis' }, }, { path: 'operationLog', name: 'OperationLog', component: () => import('@/views/operationLog/index.vue'), meta: { title: '操作日志', icon: 'Document' }, }, { path: 'system/account', name: 'Account', component: () => import('@/views/account/index.vue'), meta: { title: '账号管理', icon: 'Avatar' }, }, { path: 'system/role', name: 'Role', component: () => import('@/views/role/index.vue'), meta: { title: '角色管理', icon: 'UserFilled' }, }, { path: 'system/dict', name: 'Dict', component: () => import('@/views/dict/index.vue'), meta: { title: '字典管理', icon: 'Notebook' }, }, ], }, ] export default routes