From c0e475e096c9ea694c0b52f537195be84a14c6a0 Mon Sep 17 00:00:00 2001 From: Rain&Bus Date: Thu, 11 Jan 2024 23:42:20 +0800 Subject: [PATCH] router --- src/routes/config.ts | 219 +++++++++++++++++++++++++------------------ 1 file changed, 130 insertions(+), 89 deletions(-) diff --git a/src/routes/config.ts b/src/routes/config.ts index 8519f28..f5a6ad2 100644 --- a/src/routes/config.ts +++ b/src/routes/config.ts @@ -22,96 +22,137 @@ const menus: { menus: [ // 菜单相关路由 { key: '/app/dashboard/index', title: '首页', icon: 'mobile', component: 'Dashboard' }, + // { + // key: '/app/ui', + // title: 'UI', + // icon: 'scan', + // subs: [ + // { key: '/app/ui/buttons', title: '按钮', component: 'Buttons' }, + // { key: '/app/ui/icons', title: '图标', component: 'Icons' }, + // { key: '/app/ui/spins', title: '加载中', component: 'Spins' }, + // { key: '/app/ui/modals', title: '对话框', component: 'Modals' }, + // { key: '/app/ui/notifications', title: '通知提醒框', component: 'Notifications' }, + // { key: '/app/ui/tabs', title: '标签页', component: 'Tabs' }, + // { key: '/app/ui/banners', title: '轮播图', component: 'Banners' }, + // { key: '/app/ui/wysiwyg', title: '富文本', component: 'WysiwygBundle' }, + // { key: '/app/ui/drags', title: '拖拽', component: 'Drags' }, + // { key: '/app/ui/gallery', title: '画廊', component: 'Gallery' }, + // { key: '/app/ui/map', title: '地图', component: 'MapUi' }, + // ], + // }, + // { + // key: '/app/animation', + // title: '动画', + // icon: 'rocket', + // subs: [ + // { + // key: '/app/animation/basicAnimations', + // title: '基础动画', + // component: 'BasicAnimations', + // }, + // { + // key: '/app/animation/exampleAnimations', + // title: '动画案例', + // component: 'ExampleAnimations', + // }, + // ], + // }, + // { + // key: '/app/table', + // title: '表格', + // icon: 'copy', + // subs: [ + // { key: '/app/table/basicTable', title: '基础表格', component: 'BasicTable' }, + // { key: '/app/table/advancedTable', title: '高级表格', component: 'AdvancedTable' }, + // { + // key: '/app/table/asynchronousTable', + // title: '异步表格', + // component: 'AsynchronousTable', + // }, + // ], + // }, + // { + // key: '/app/chart', + // title: '图表', + // icon: 'area-chart', + // subs: [ + // { key: '/app/chart/echarts', title: 'echarts', component: 'Echarts' }, + // { key: '/app/chart/recharts', title: 'recharts', component: 'Recharts' }, + // ], + // }, + // { + // key: '/subs4', + // title: '页面', + // icon: 'switcher', + // subs: [ + // { key: '/login', title: '登录' }, + // { key: '/404', title: '404' }, + // ], + // }, + // { + // key: '/app/auth', + // title: '权限管理', + // icon: 'safety', + // subs: [ + // { key: '/app/auth/basic', title: '基础演示', component: 'AuthBasic' }, + // { + // key: '/app/auth/routerEnter', + // title: '路由拦截', + // component: 'RouterEnter', + // requireAuth: 'auth/testPage', + // }, + // ], + // }, + // { + // key: '/app/cssModule', + // title: 'cssModule', + // icon: 'star', + // component: 'Cssmodule', + // }, + // { + // key: '/app/extension', + // title: '功能扩展', + // icon: 'bars', + // subs: [ + // { + // key: '/app/extension/queryParams', + // title: '问号形式参数', + // component: 'QueryParams', + // query: '?param1=1¶m2=2', + // }, + // { + // key: '/app/extension/visitor', + // title: '访客模式', + // component: 'Visitor', + // login: true, + // }, + // { + // key: '/app/extension/multiple', + // title: '多级菜单', + // subs: [ + // { + // key: '/app/extension/multiple/child', + // title: '多级菜单子菜单', + // subs: [ + // { + // key: '/app/extension/multiple/child/child', + // title: '多级菜单子子菜单', + // component: 'MultipleMenu', + // }, + // ], + // }, + // ], + // }, + // { + // key: '/app/extension/env', + // title: '环境配置', + // component: 'Env', + // }, + // ], + // }, { - key: '/app/ui', - title: 'UI', - icon: 'scan', - subs: [ - { key: '/app/ui/buttons', title: '按钮', component: 'Buttons' }, - { key: '/app/ui/icons', title: '图标', component: 'Icons' }, - { key: '/app/ui/spins', title: '加载中', component: 'Spins' }, - { key: '/app/ui/modals', title: '对话框', component: 'Modals' }, - { key: '/app/ui/notifications', title: '通知提醒框', component: 'Notifications' }, - { key: '/app/ui/tabs', title: '标签页', component: 'Tabs' }, - { key: '/app/ui/banners', title: '轮播图', component: 'Banners' }, - { key: '/app/ui/wysiwyg', title: '富文本', component: 'WysiwygBundle' }, - { key: '/app/ui/drags', title: '拖拽', component: 'Drags' }, - { key: '/app/ui/gallery', title: '画廊', component: 'Gallery' }, - { key: '/app/ui/map', title: '地图', component: 'MapUi' }, - ], - }, - { - key: '/app/animation', - title: '动画', - icon: 'rocket', - subs: [ - { - key: '/app/animation/basicAnimations', - title: '基础动画', - component: 'BasicAnimations', - }, - { - key: '/app/animation/exampleAnimations', - title: '动画案例', - component: 'ExampleAnimations', - }, - ], - }, - { - key: '/app/table', - title: '表格', - icon: 'copy', - subs: [ - { key: '/app/table/basicTable', title: '基础表格', component: 'BasicTable' }, - { key: '/app/table/advancedTable', title: '高级表格', component: 'AdvancedTable' }, - { - key: '/app/table/asynchronousTable', - title: '异步表格', - component: 'AsynchronousTable', - }, - ], - }, - { - key: '/app/chart', - title: '图表', - icon: 'area-chart', - subs: [ - { key: '/app/chart/echarts', title: 'echarts', component: 'Echarts' }, - { key: '/app/chart/recharts', title: 'recharts', component: 'Recharts' }, - ], - }, - { - key: '/subs4', - title: '页面', - icon: 'switcher', - subs: [ - { key: '/login', title: '登录' }, - { key: '/404', title: '404' }, - ], - }, - { - key: '/app/auth', - title: '权限管理', - icon: 'safety', - subs: [ - { key: '/app/auth/basic', title: '基础演示', component: 'AuthBasic' }, - { - key: '/app/auth/routerEnter', - title: '路由拦截', - component: 'RouterEnter', - requireAuth: 'auth/testPage', - }, - ], - }, - { - key: '/app/cssModule', - title: 'cssModule', - icon: 'star', - component: 'Cssmodule', - }, - { - key: '/app/extension', - title: '功能扩展', + key: '/app/visualize', + title: 'Visualize', icon: 'bars', subs: [ {