zb-admin/src/router/modules/other.ts

79 lines
2.0 KiB
TypeScript
Raw Normal View History

2022-03-25 07:23:57 +00:00
/** When your routing table is too long, you can split it into small modules**/
2022-06-10 07:04:07 +00:00
import Layout from '@/layout/index.vue'
2022-03-25 07:23:57 +00:00
const othersRouter = {
2022-06-10 07:04:07 +00:00
path: '/other',
component: Layout,
redirect: 'noRedirect',
name: 'other',
meta: {
title: '扩展组件',
icon: 'management'
},
children: [
{
path: 'editor',
component: () => import('@/views/other/editor.vue'),
name: 'editor',
meta: { title: '富文本编辑器', roles: ['other'] }
2022-03-25 07:23:57 +00:00
},
2022-06-10 07:04:07 +00:00
{
path: 'mark-down',
component: () => import('@/views/other/mark-down.vue'),
name: 'mark-down',
meta: { title: 'markDown', roles: ['other'] }
},
{
path: 'print',
component: () => import('@/views/other/print.vue'),
name: 'print',
meta: { title: '打印' }
},
{
path: 'cropper',
component: () => import('@/views/other/cropper/index.vue'),
name: 'cropper',
meta: { title: '头像裁剪' }
},
{
path: 'grid-sorter',
component: () => import('@/views/other/grid-sorter.vue'),
name: 'grid-sorter',
meta: { title: '卡片拖拽' }
},
// {
// path: 'splitpane',
// component: () => import('@/views/other/splitpane.vue'),
// name: 'splitpane',
// meta: { title: '分割模块',}
// },
{
path: 'qrcode',
component: () => import('@/views/other/qrcode.vue'),
name: 'qrcode',
meta: { title: '生成二维码' }
},
2022-06-17 06:27:56 +00:00
{
path: 'water-marker',
component: () => import('@/views/other/water-marker.vue'),
name: 'water-marker',
meta: { title: '生成水印' }
},
2022-06-10 07:04:07 +00:00
{
path: 'right-menu',
component: () => import('@/views/other/right-menu.vue'),
name: 'right-menu',
meta: { title: '右键菜单' }
},
{
path: 'count',
component: () => import('@/views/other/count.vue'),
name: 'count',
meta: { title: '数字自增长' }
}
]
2022-03-25 07:23:57 +00:00
}
export default othersRouter