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

97 lines
2.7 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
2022-09-29 14:04:17 +00:00
const othersRouter = [{
2022-06-10 07:04:07 +00:00
path: '/other',
component: Layout,
2022-09-28 14:06:33 +00:00
redirect: '/other/editor',
2022-06-10 07:04:07 +00:00
name: 'other',
meta: {
2022-11-03 04:57:30 +00:00
title: '常用组件',
2022-06-10 07:04:07 +00:00
icon: 'management'
},
children: [
2022-11-03 04:57:30 +00:00
{
path: 'clipboard',
component: () => import('@/views/other/clipboard/index.vue'),
name: 'clipboard',
meta: { title: '剪贴板', roles:['other'] ,icon: 'MenuIcon',}
},
2022-06-10 07:04:07 +00:00
{
path: 'editor',
2022-08-29 08:08:26 +00:00
component: () => import('@/views/other/editor/index.vue'),
2022-06-10 07:04:07 +00:00
name: 'editor',
2022-08-27 15:34:05 +00:00
meta: { title: '富文本编辑器', roles: ['other'] , icon: 'MenuIcon'}
2022-03-25 07:23:57 +00:00
},
2022-06-10 07:04:07 +00:00
{
path: 'mark-down',
2022-08-29 08:08:26 +00:00
component: () => import('@/views/other/markDown/index.vue'),
2022-06-10 07:04:07 +00:00
name: 'mark-down',
2022-08-27 15:34:05 +00:00
meta: { title: 'markDown', roles: ['other'] , icon: 'MenuIcon'}
2022-06-10 07:04:07 +00:00
},
{
path: 'print',
component: () => import('@/views/other/print.vue'),
name: 'print',
2022-08-27 15:34:05 +00:00
meta: { title: '打印' , icon: 'MenuIcon'}
2022-06-10 07:04:07 +00:00
},
{
path: 'cropper',
component: () => import('@/views/other/cropper/index.vue'),
name: 'cropper',
2022-08-27 15:34:05 +00:00
meta: { title: '头像裁剪' , icon: 'MenuIcon'}
2022-06-10 07:04:07 +00:00
},
{
path: 'grid-sorter',
component: () => import('@/views/other/grid-sorter.vue'),
name: 'grid-sorter',
2022-08-27 15:34:05 +00:00
meta: { title: '卡片拖拽', icon: 'MenuIcon' }
2022-06-10 07:04:07 +00:00
},
2022-08-04 10:20:56 +00:00
{
path: 'upload',
component: () => import('@/views/other/upload.vue'),
name: 'upload',
2022-08-27 15:34:05 +00:00
meta: { title: '上传图片', icon: 'MenuIcon' }
2022-08-04 10:20:56 +00:00
},
2022-06-10 07:04:07 +00:00
{
path: 'qrcode',
component: () => import('@/views/other/qrcode.vue'),
name: 'qrcode',
2022-08-27 15:34:05 +00:00
meta: { title: '生成二维码', icon: 'MenuIcon' }
2022-06-10 07:04:07 +00:00
},
2022-08-29 08:08:26 +00:00
{
path: 'svgIcon',
component: () => import('@/views/other/svgIcon/index.vue'),
name: 'svgIcon',
meta: { title: 'svg图标', icon: 'MenuIcon' }
},
{
path: 'iconfont',
component: () => import('@/views/other/iconfont/index.vue'),
name: 'iconfont',
meta: { title: '阿里图标库', icon: 'MenuIcon' }
},
2022-06-17 06:27:56 +00:00
{
path: 'water-marker',
component: () => import('@/views/other/water-marker.vue'),
name: 'water-marker',
2022-08-27 15:34:05 +00:00
meta: { title: '生成水印' , icon: 'MenuIcon'}
2022-06-17 06:27:56 +00:00
},
2022-06-10 07:04:07 +00:00
{
path: 'right-menu',
component: () => import('@/views/other/right-menu.vue'),
name: 'right-menu',
2022-08-27 15:34:05 +00:00
meta: { title: '右键菜单' , icon: 'MenuIcon'}
2022-06-10 07:04:07 +00:00
},
{
path: 'count',
component: () => import('@/views/other/count.vue'),
name: 'count',
2022-08-27 15:34:05 +00:00
meta: { title: '数字自增长', icon: 'MenuIcon' }
2022-06-10 07:04:07 +00:00
}
]
2022-09-29 14:04:17 +00:00
}]
2022-03-25 07:23:57 +00:00
export default othersRouter