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-11-16 11:46:47 +00:00
|
|
|
redirect: '/other/clipboard',
|
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
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/clipboard',
|
2022-11-03 04:57:30 +00:00
|
|
|
component: () => import('@/views/other/clipboard/index.vue'),
|
|
|
|
|
name: 'clipboard',
|
|
|
|
|
meta: { title: '剪贴板', roles:['other'] ,icon: 'MenuIcon',}
|
|
|
|
|
},
|
2022-06-10 07:04:07 +00:00
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/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-11-10 05:12:12 +00:00
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/code-mirror',
|
2022-11-10 05:12:12 +00:00
|
|
|
component: () => import('@/views/other/codeMirror/index.vue'),
|
|
|
|
|
name: 'code-mirror',
|
|
|
|
|
meta: { title: '代码编辑器', roles: ['other'] , icon: 'MenuIcon'}
|
|
|
|
|
},
|
2022-06-10 07:04:07 +00:00
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/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
|
|
|
},
|
|
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/print',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/print/index.vue'),
|
2022-06-10 07:04:07 +00:00
|
|
|
name: 'print',
|
2022-08-27 15:34:05 +00:00
|
|
|
meta: { title: '打印' , icon: 'MenuIcon'}
|
2022-06-10 07:04:07 +00:00
|
|
|
},
|
|
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/cropper',
|
2022-06-10 07:04:07 +00:00
|
|
|
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
|
|
|
},
|
|
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/card-drag',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/cardDrag/index.vue'),
|
|
|
|
|
name: 'card-drag',
|
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
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/upload',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/upload/index.vue'),
|
2022-08-04 10:20:56 +00:00
|
|
|
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
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/qrcode',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/qrcode/index.vue'),
|
2022-06-10 07:04:07 +00:00
|
|
|
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
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/svgIcon',
|
2022-08-29 08:08:26 +00:00
|
|
|
component: () => import('@/views/other/svgIcon/index.vue'),
|
|
|
|
|
name: 'svgIcon',
|
2022-12-02 14:14:18 +00:00
|
|
|
meta: { title: 'svg 图标', icon: 'MenuIcon' }
|
2022-08-29 08:08:26 +00:00
|
|
|
},
|
2022-09-15 05:18:29 +00:00
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/iconfont',
|
2022-09-15 05:18:29 +00:00
|
|
|
component: () => import('@/views/other/iconfont/index.vue'),
|
|
|
|
|
name: 'iconfont',
|
|
|
|
|
meta: { title: '阿里图标库', icon: 'MenuIcon' }
|
|
|
|
|
},
|
2022-06-17 06:27:56 +00:00
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/water-marker',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/waterMarker/index.vue'),
|
2022-06-17 06:27:56 +00:00
|
|
|
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
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/right-menu',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/rightMenu/index.vue'),
|
2022-06-10 07:04:07 +00:00
|
|
|
name: 'right-menu',
|
2022-08-27 15:34:05 +00:00
|
|
|
meta: { title: '右键菜单' , icon: 'MenuIcon'}
|
2022-06-10 07:04:07 +00:00
|
|
|
},
|
|
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/count',
|
2022-11-04 01:27:07 +00:00
|
|
|
component: () => import('@/views/other/count/index.vue'),
|
2022-06-10 07:04:07 +00:00
|
|
|
name: 'count',
|
2022-11-12 13:44:06 +00:00
|
|
|
meta: { title: '数字动画', icon: 'MenuIcon' }
|
2023-01-07 15:34:28 +00:00
|
|
|
},
|
2023-01-09 08:36:15 +00:00
|
|
|
{
|
2023-03-02 02:08:16 +00:00
|
|
|
path: '/other/text-clamp',
|
2023-01-09 08:36:15 +00:00
|
|
|
component: () => import('@/views/other/textClamp/index.vue'),
|
|
|
|
|
name: 'text-clamp',
|
|
|
|
|
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
|