|
@@ -103,7 +103,252 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
|
|
|
component: () => import('@/views/Manage/News/NewsAdd.vue'),
|
|
|
name: 'NewsAdd',
|
|
|
meta: {
|
|
|
- title: '新增文案',
|
|
|
+ title: t('router.descriptions')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'image-viewer',
|
|
|
+ component: () => import('@/views/Components/ImageViewer.vue'),
|
|
|
+ name: 'ImageViewer',
|
|
|
+ meta: {
|
|
|
+ title: t('router.imageViewer')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'dialog',
|
|
|
+ component: () => import('@/views/Components/Dialog.vue'),
|
|
|
+ name: 'Dialog',
|
|
|
+ meta: {
|
|
|
+ title: t('router.dialog')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'icon',
|
|
|
+ component: () => import('@/views/Components/Icon.vue'),
|
|
|
+ name: 'Icon',
|
|
|
+ meta: {
|
|
|
+ title: t('router.icon')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'echart',
|
|
|
+ component: () => import('@/views/Components/Echart.vue'),
|
|
|
+ name: 'Echart',
|
|
|
+ meta: {
|
|
|
+ title: t('router.echart')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'count-to',
|
|
|
+ component: () => import('@/views/Components/CountTo.vue'),
|
|
|
+ name: 'CountTo',
|
|
|
+ meta: {
|
|
|
+ title: t('router.countTo')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'qrcode',
|
|
|
+ component: () => import('@/views/Components/Qrcode.vue'),
|
|
|
+ name: 'Qrcode',
|
|
|
+ meta: {
|
|
|
+ title: t('router.qrcode')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'highlight',
|
|
|
+ component: () => import('@/views/Components/Highlight.vue'),
|
|
|
+ name: 'Highlight',
|
|
|
+ meta: {
|
|
|
+ title: t('router.highlight')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'infotip',
|
|
|
+ component: () => import('@/views/Components/Infotip.vue'),
|
|
|
+ name: 'Infotip',
|
|
|
+ meta: {
|
|
|
+ title: t('router.infotip')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'input-password',
|
|
|
+ component: () => import('@/views/Components/InputPassword.vue'),
|
|
|
+ name: 'InputPassword',
|
|
|
+ meta: {
|
|
|
+ title: t('router.inputPassword')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/function',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/function/multipleTabs',
|
|
|
+ name: 'Function',
|
|
|
+ meta: {
|
|
|
+ title: t('router.function'),
|
|
|
+ icon: 'ri:function-fill',
|
|
|
+ alwaysShow: true
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'multiple-tabs',
|
|
|
+ component: () => import('@/views/Function/MultipleTabs.vue'),
|
|
|
+ name: 'MultipleTabs',
|
|
|
+ meta: {
|
|
|
+ title: t('router.multipleTabs')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'multiple-tabs-demo/:id',
|
|
|
+ component: () => import('@/views/Function/MultipleTabsDemo.vue'),
|
|
|
+ name: 'MultipleTabsDemo',
|
|
|
+ meta: {
|
|
|
+ hidden: true,
|
|
|
+ title: t('router.details'),
|
|
|
+ canTo: true,
|
|
|
+ activeMenu: '/function/multiple-tabs'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/hooks',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/hooks/useWatermark',
|
|
|
+ name: 'Hooks',
|
|
|
+ meta: {
|
|
|
+ title: 'hooks',
|
|
|
+ icon: 'ic:outline-webhook',
|
|
|
+ alwaysShow: true
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'useWatermark',
|
|
|
+ component: () => import('@/views/hooks/useWatermark.vue'),
|
|
|
+ name: 'UseWatermark',
|
|
|
+ meta: {
|
|
|
+ title: 'useWatermark'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'useTagsView',
|
|
|
+ component: () => import('@/views/hooks/useTagsView.vue'),
|
|
|
+ name: 'UseTagsView',
|
|
|
+ meta: {
|
|
|
+ title: 'useTagsView'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'useValidator',
|
|
|
+ component: () => import('@/views/hooks/useValidator.vue'),
|
|
|
+ name: 'UseValidator',
|
|
|
+ meta: {
|
|
|
+ title: 'useValidator'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // {
|
|
|
+ // path: 'useCrudSchemas',
|
|
|
+ // component: () => import('@/views/hooks/useCrudSchemas.vue'),
|
|
|
+ // name: 'UseCrudSchemas',
|
|
|
+ // meta: {
|
|
|
+ // title: 'useCrudSchemas'
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/level',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/level/menu1/menu1-1/menu1-1-1',
|
|
|
+ name: 'Level',
|
|
|
+ meta: {
|
|
|
+ title: t('router.level'),
|
|
|
+ icon: 'carbon:skill-level-advanced'
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'menu1',
|
|
|
+ name: 'Menu1',
|
|
|
+ component: getParentLayout(),
|
|
|
+ redirect: '/level/menu1/menu1-1/menu1-1-1',
|
|
|
+ meta: {
|
|
|
+ title: t('router.menu1')
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'menu1-1',
|
|
|
+ name: 'Menu11',
|
|
|
+ component: getParentLayout(),
|
|
|
+ redirect: '/level/menu1/menu1-1/menu1-1-1',
|
|
|
+ meta: {
|
|
|
+ title: t('router.menu11'),
|
|
|
+ alwaysShow: true
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'menu1-1-1',
|
|
|
+ name: 'Menu111',
|
|
|
+ component: () => import('@/views/Level/Menu111.vue'),
|
|
|
+ meta: {
|
|
|
+ title: t('router.menu111')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'menu1-2',
|
|
|
+ name: 'Menu12',
|
|
|
+ component: () => import('@/views/Level/Menu12.vue'),
|
|
|
+ meta: {
|
|
|
+ title: t('router.menu12')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'menu2',
|
|
|
+ name: 'Menu2',
|
|
|
+ component: () => import('@/views/Level/Menu2.vue'),
|
|
|
+ meta: {
|
|
|
+ title: t('router.menu2')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/example',
|
|
|
+ component: Layout,
|
|
|
+ redirect: '/example/example-dialog',
|
|
|
+ name: 'Example',
|
|
|
+ meta: {
|
|
|
+ title: t('router.example'),
|
|
|
+ icon: 'ep:management',
|
|
|
+ alwaysShow: true
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'example-dialog',
|
|
|
+ component: () => import('@/views/Example/Dialog/ExampleDialog.vue'),
|
|
|
+ name: 'ExampleDialog',
|
|
|
+ meta: {
|
|
|
+ title: t('router.exampleDialog')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'example-page',
|
|
|
+ component: () => import('@/views/Example/Page/ExamplePage.vue'),
|
|
|
+ name: 'ExamplePage',
|
|
|
+ meta: {
|
|
|
+ title: t('router.examplePage')
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'example-add',
|
|
|
+ component: () => import('@/views/Example/Page/ExampleAdd.vue'),
|
|
|
+ name: 'ExampleAdd',
|
|
|
+ meta: {
|
|
|
+ title: t('router.exampleAdd'),
|
|
|
noTagsView: true,
|
|
|
noCache: true,
|
|
|
hidden: true,
|