import type { AppRouteModule } from '/@/router/types'
import { LAYOUT } from '/@/router/constant'
const main: AppRouteModule = {
  path: '/system',
  name: 'System',
  component: LAYOUT,
  redirect: '/permission/front/page',
  meta: {
    orderNo: 4,
    icon: 'ion:key-outline',
    title: '系统管理',
  },
  children: [
    {
      path: 'management',
      name: 'SystemManagement',
      component: () => import('/@/views/system/management/index.vue'),
      meta: {
        title: '设备管理',
      },
    },
    {
      path: 'role',
      name: 'SystemRole',
      component: () => import('/@/views/system/role/index.vue'),
      meta: {
        title: '角色管理',
      },
    },
    {
      path: 'account',
      name: 'SystemAccount',
      component: () => import('/@/views/system/account/index.vue'),
      meta: {
        title: '账号管理',
      },
    },
  ],
}

export default main
