| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306 |
- import type { RouteRecordRaw } from 'vue-router'
- const asyncRouter: RouteRecordRaw[] = [
- {
- path: '/home',
- name: 'home',
- component: () => import('@/views/exception/403.vue'),
- meta: {
- title: '首页',
- icon: 'House'
- }
- },
- // -- APPEND HERE --
- {
- path: 'https://jijian.sxidc.com/',
- name: 'jijian',
- component: () => ({}),
- meta: {
- title: '极简低代码',
- icon: 'Aim'
- }
- },
- {
- 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',
- keepAlive: true,
- viewName: 'User'
- }
- },
- {
- path: '/system/role',
- name: 'systemRole',
- component: () => import('@/views/system/Role.vue'),
- meta: {
- title: '角色管理',
- icon: 'avatar',
- keepAlive: true,
- viewName: 'Role'
- }
- },
- {
- 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: '/system/area',
- name: 'systemArea',
- component: () => import('@/views/system/Area.vue'),
- meta: {
- title: '区域管理',
- icon: 'Reading'
- }
- },
- {
- path: '/system/configure',
- name: 'systemConfigure',
- component: () => import('@/views/system/Configure.vue'),
- meta: {
- title: '系统配置',
- icon: 'Edit'
- }
- }
- ]
- },
- {
- 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: 'Notification'
- },
- 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/tab',
- name: 'formTab',
- component: () => import('@/views/form/Tab.vue'),
- meta: {
- title: 'tab表单'
- }
- },
- {
- path: '/form/step',
- name: 'formStep',
- component: () => import('@/views/form/Step.vue'),
- meta: {
- title: '步骤表单'
- }
- }
- ]
- },
- {
- 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: '/monitor',
- name: 'monitor',
- meta: {
- title: '系统监控',
- icon: 'Notification'
- },
- children: [
- {
- path: '/monitor/logList',
- name: 'logList',
- component: () => import('@/views/monitor/LogList.vue'),
- meta: {
- title: '日志查询',
- icon: 'List'
- }
- },
- {
- path: '/monitor/messageNotif',
- name: 'messageNotif',
- component: () => import('@/views/monitor/MessageNotif.vue'),
- meta: {
- title: '消息通知',
- icon: 'ChatRound'
- }
- }
- ]
- },
- {
- path: '/iframe',
- name: 'iframe',
- component: () => import('@/views/iframe/Iframe.vue'),
- meta: {
- title: 'iframe示例',
- icon: 'Notebook'
- }
- },
- {
- path: '/userInfo',
- name: 'userInfo',
- component: () => import('@/views/user/UserInfo.vue'),
- meta: {
- title: '个人中心',
- icon: 'House'
- },
- hidden: true
- },
- {
- path: '/:pathMatch(.*)*',
- redirect: '/exception/404',
- hidden: true
- }
- ]
- export default asyncRouter
|