| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- import type { RouteRecordRaw } from 'vue-router'
- const asyncRouter: RouteRecordRaw[] = [
- {
- path: '/home',
- name: 'home',
- component: () => import('@/views/exception/403.vue'),
- meta: {
- title: '首页',
- icon: 'House'
- }
- },
- {
- path: '/system',
- name: 'system',
- meta: {
- title: '系统管理',
- icon: 'icon-system'
- },
- children: [
- {
- path: '/system/user',
- name: 'systemUser',
- component: () => import('@/views/system/User.vue'),
- meta: {
- title: '用户管理',
- icon: 'user'
- }
- },
- {
- path: '/system/role',
- name: 'systemRole',
- component: () => import('@/views/system/Role.vue'),
- meta: {
- title: '角色管理',
- icon: 'avatar'
- }
- },
- {
- path: '/system/dict',
- name: 'systemDict',
- component: () => import('@/views/system/Dict.vue'),
- meta: {
- title: '字典管理',
- icon: 'memo'
- }
- },
- {
- path: '/system/menu',
- name: 'systemMenu',
- component: () => import('@/views/system/Menu.vue'),
- meta: {
- title: '菜单管理',
- icon: 'menu'
- }
- }
- ]
- },
- {
- path: '/org',
- name: 'org',
- meta: {
- title: '组织机构',
- icon: 'OfficeBuilding'
- },
- children: [
- {
- path: '/org/orgList',
- name: 'orgList',
- component: () => import('@/views/org/Org.vue'),
- meta: {
- title: '机构管理',
- icon: 'OfficeBuilding'
- }
- }
- ]
- },
- {
- path: '/miniprogram',
- name: 'miniprogram',
- meta: {
- title: '小程序管理',
- icon: 'icon-system'
- },
- children: [
- {
- path: '/miniprogram/banner',
- name: 'miniBanner',
- component: () => import('@/views/miniprogram/Banner.vue'),
- meta: {
- title: '轮播图',
- icon: 'picture'
- }
- },
- {
- path: '/miniprogram/question',
- name: 'miniQuestion',
- component: () => import('@/views/miniprogram/Question.vue'),
- meta: {
- title: '常见问题',
- icon: 'QuestionFilled'
- }
- },
- {
- path: '/miniprogram/feedback',
- name: 'miniFeedback',
- component: () => import('@/views/miniprogram/Feedback.vue'),
- meta: {
- title: '意见反馈',
- icon: 'Promotion'
- }
- },
- {
- path: '/miniprogram/about',
- name: 'miniAbout',
- component: () => import('@/views/miniprogram/About.vue'),
- meta: {
- title: '关于我们',
- icon: 'user'
- }
- },
- {
- path: '/miniprogram/version',
- name: 'miniVersion',
- component: () => import('@/views/miniprogram/Version.vue'),
- meta: {
- title: '版本信息',
- icon: 'list'
- }
- }
- ]
- },
- {
- path: '/list',
- name: 'list',
- meta: {
- title: '列表页',
- icon: 'icon-list-view'
- },
- children: [
- {
- path: '/list/cardList',
- name: 'cardList',
- component: () => import('@/views/list/CardList.vue'),
- meta: {
- title: '卡片列表',
- icon: 'icon-bank-card'
- }
- }
- ]
- },
- {
- path: '/form',
- name: 'form',
- meta: {
- title: '表单页',
- icon: 'Notebook'
- },
- children: [
- {
- path: '/form/basic',
- name: 'formBasic',
- component: () => import('@/views/form/Basic.vue'),
- meta: {
- title: '基础表单'
- }
- },
- {
- path: '/form/advanced',
- name: 'formAdvanced',
- component: () => import('@/views/form/Advanced.vue'),
- meta: {
- title: '高级表单'
- }
- },
- {
- path: '/form/test',
- name: 'test',
- meta: {
- title: 'ceshi'
- },
- children: [
- {
- path: '/form/basict',
- name: 'formBasict',
- component: () => import('@/views/form/Basic.vue'),
- meta: {
- title: '基础表单t'
- }
- },
- {
- path: '/form/advancedt',
- name: 'formAdvancedt',
- component: () => import('@/views/form/Advanced.vue'),
- meta: {
- title: '高级表单t'
- }
- }
- ]
- }
- ]
- },
- {
- path: '/result',
- name: 'result',
- meta: {
- title: '结果页',
- icon: 'CircleCheck'
- },
- children: [
- {
- path: '/result/success',
- name: 'resultSuccess',
- component: () => import('@/views/result/Success.vue'),
- meta: {
- title: '成功页'
- }
- },
- {
- path: '/result/error',
- name: 'resultError',
- component: () => import('@/views/result/Error.vue'),
- meta: {
- title: '失败页'
- }
- }
- ]
- },
- {
- path: '/:pathMatch(.*)*',
- redirect: '/exception/404',
- hidden: true
- }
- ]
- export default asyncRouter
|