|
@@ -88,428 +88,110 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- path: '/external-link',
|
|
|
- component: Layout,
|
|
|
- meta: {},
|
|
|
- name: 'ExternalLink',
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'https://element-plus-admin-doc.cn/',
|
|
|
- name: 'DocumentLink',
|
|
|
- meta: {
|
|
|
- title: t('router.document'),
|
|
|
- icon: 'clarity:document-solid'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/guide',
|
|
|
- component: Layout,
|
|
|
- name: 'Guide',
|
|
|
- meta: {},
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'index',
|
|
|
- component: () => import('@/views/Guide/Guide.vue'),
|
|
|
- name: 'GuideDemo',
|
|
|
- meta: {
|
|
|
- title: t('router.guide'),
|
|
|
- icon: 'cib:telegram-plane'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/components',
|
|
|
+ path: '/manage',
|
|
|
component: Layout,
|
|
|
- name: 'ComponentsDemo',
|
|
|
+ redirect: '/manage/news-page',
|
|
|
+ name: 'Manage',
|
|
|
meta: {
|
|
|
- title: t('router.component'),
|
|
|
- icon: 'bx:bxs-component',
|
|
|
+ title: '模块管理',
|
|
|
+ icon: 'ep:menu',
|
|
|
alwaysShow: true
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'form',
|
|
|
- component: getParentLayout(),
|
|
|
- redirect: '/components/form/default-form',
|
|
|
- name: 'Form',
|
|
|
- meta: {
|
|
|
- title: t('router.form'),
|
|
|
- alwaysShow: true
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'default-form',
|
|
|
- component: () => import('@/views/Components/Form/DefaultForm.vue'),
|
|
|
- name: 'DefaultForm',
|
|
|
- meta: {
|
|
|
- title: t('router.defaultForm')
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'use-form',
|
|
|
- component: () => import('@/views/Components/Form/UseFormDemo.vue'),
|
|
|
- name: 'UseForm',
|
|
|
- meta: {
|
|
|
- title: 'UseForm'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'table',
|
|
|
- component: getParentLayout(),
|
|
|
- redirect: '/components/table/default-table',
|
|
|
- name: 'TableDemo',
|
|
|
- meta: {
|
|
|
- title: t('router.table'),
|
|
|
- alwaysShow: true
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'default-table',
|
|
|
- component: () => import('@/views/Components/Table/DefaultTable.vue'),
|
|
|
- name: 'DefaultTable',
|
|
|
- meta: {
|
|
|
- title: t('router.defaultTable')
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'use-table',
|
|
|
- component: () => import('@/views/Components/Table/UseTableDemo.vue'),
|
|
|
- name: 'UseTable',
|
|
|
- meta: {
|
|
|
- title: 'UseTable'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'tree-table',
|
|
|
- component: () => import('@/views/Components/Table/TreeTable.vue'),
|
|
|
- name: 'TreeTable',
|
|
|
- meta: {
|
|
|
- title: t('router.treeTable')
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'table-image-preview',
|
|
|
- component: () => import('@/views/Components/Table/TableImagePreview.vue'),
|
|
|
- name: 'TableImagePreview',
|
|
|
- meta: {
|
|
|
- title: t('router.PicturePreview')
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'editor-demo',
|
|
|
- component: getParentLayout(),
|
|
|
- redirect: '/components/editor-demo/editor',
|
|
|
- name: 'EditorDemo',
|
|
|
- meta: {
|
|
|
- title: t('router.editor'),
|
|
|
- alwaysShow: true
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: 'editor',
|
|
|
- component: () => import('@/views/Components/Editor/Editor.vue'),
|
|
|
- name: 'Editor',
|
|
|
- meta: {
|
|
|
- title: t('router.richText')
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'search',
|
|
|
- component: () => import('@/views/Components/Search.vue'),
|
|
|
- name: 'Search',
|
|
|
- meta: {
|
|
|
- title: t('router.search')
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'descriptions',
|
|
|
- component: () => import('@/views/Components/Descriptions.vue'),
|
|
|
- name: 'Descriptions',
|
|
|
+ path: 'news-page',
|
|
|
+ component: () => import('@/views/Manage/News/NewsPage.vue'),
|
|
|
+ name: 'NewsPage',
|
|
|
meta: {
|
|
|
- title: t('router.descriptions')
|
|
|
+ title: '新闻管理'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'image-viewer',
|
|
|
- component: () => import('@/views/Components/ImageViewer.vue'),
|
|
|
- name: 'ImageViewer',
|
|
|
+ path: 'news-add',
|
|
|
+ component: () => import('@/views/Manage/News/NewsAdd.vue'),
|
|
|
+ name: 'NewsAdd',
|
|
|
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')
|
|
|
+ title: '新增新闻',
|
|
|
+ noTagsView: true,
|
|
|
+ noCache: true,
|
|
|
+ hidden: true,
|
|
|
+ canTo: true,
|
|
|
+ activeMenu: '/manage/news-page'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'input-password',
|
|
|
- component: () => import('@/views/Components/InputPassword.vue'),
|
|
|
- name: 'InputPassword',
|
|
|
- meta: {
|
|
|
- title: t('router.inputPassword')
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- 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',
|
|
|
+ path: 'news-edit',
|
|
|
+ component: () => import('@/views/Manage/News/NewsEdit.vue'),
|
|
|
+ name: 'NewsEdit',
|
|
|
meta: {
|
|
|
- title: 'useWatermark'
|
|
|
+ title: '编辑新闻',
|
|
|
+ noTagsView: true,
|
|
|
+ noCache: true,
|
|
|
+ hidden: true,
|
|
|
+ canTo: true,
|
|
|
+ activeMenu: '/manage/news-page'
|
|
|
}
|
|
|
- }
|
|
|
- // {
|
|
|
- // path: 'useOpenTab',
|
|
|
- // component: () => import('@/views/hooks/useOpenTab.vue'),
|
|
|
- // name: 'UseOpenTab',
|
|
|
- // meta: {
|
|
|
- // title: 'useOpenTab'
|
|
|
- // }
|
|
|
- // }
|
|
|
- // {
|
|
|
- // 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'),
|
|
|
+ path: 'news-detail',
|
|
|
+ component: () => import('@/views/Manage/News/NewsDetail.vue'),
|
|
|
+ name: 'NewsDetail',
|
|
|
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')
|
|
|
+ title: '新闻详情',
|
|
|
+ noTagsView: true,
|
|
|
+ noCache: true,
|
|
|
+ hidden: true,
|
|
|
+ canTo: true,
|
|
|
+ activeMenu: '/manage/news-page'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'example-page',
|
|
|
- component: () => import('@/views/Example/Page/ExamplePage.vue'),
|
|
|
- name: 'ExamplePage',
|
|
|
+ path: 'product-page',
|
|
|
+ component: () => import('@/views/Manage/Product/ProductPage.vue'),
|
|
|
+ name: 'ProductPage',
|
|
|
meta: {
|
|
|
- title: t('router.examplePage')
|
|
|
+ title: '产品管理'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'example-add',
|
|
|
- component: () => import('@/views/Example/Page/ExampleAdd.vue'),
|
|
|
- name: 'ExampleAdd',
|
|
|
+ path: 'product-add',
|
|
|
+ component: () => import('@/views/Manage/Product/ProductAdd.vue'),
|
|
|
+ name: 'ProductAdd',
|
|
|
meta: {
|
|
|
- title: t('router.exampleAdd'),
|
|
|
+ title: '新增产品',
|
|
|
noTagsView: true,
|
|
|
noCache: true,
|
|
|
hidden: true,
|
|
|
canTo: true,
|
|
|
- activeMenu: '/example/example-page'
|
|
|
+ activeMenu: '/manage/product-page'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'example-edit',
|
|
|
- component: () => import('@/views/Example/Page/ExampleEdit.vue'),
|
|
|
- name: 'ExampleEdit',
|
|
|
+ path: 'product-edit',
|
|
|
+ component: () => import('@/views/Manage/Product/ProductEdit.vue'),
|
|
|
+ name: 'ProductEdit',
|
|
|
meta: {
|
|
|
- title: t('router.exampleEdit'),
|
|
|
+ title: '编辑产品',
|
|
|
noTagsView: true,
|
|
|
noCache: true,
|
|
|
hidden: true,
|
|
|
canTo: true,
|
|
|
- activeMenu: '/example/example-page'
|
|
|
+ activeMenu: '/manage/product-page'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- path: 'example-detail',
|
|
|
- component: () => import('@/views/Example/Page/ExampleDetail.vue'),
|
|
|
- name: 'ExampleDetail',
|
|
|
+ path: 'product-detail',
|
|
|
+ component: () => import('@/views/Manage/Product/ProductDetail.vue'),
|
|
|
+ name: 'ProductDetail',
|
|
|
meta: {
|
|
|
- title: t('router.exampleDetail'),
|
|
|
+ title: '产品详情',
|
|
|
noTagsView: true,
|
|
|
noCache: true,
|
|
|
hidden: true,
|
|
|
canTo: true,
|
|
|
- activeMenu: '/example/example-page'
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/error',
|
|
|
- component: Layout,
|
|
|
- redirect: '/error/404',
|
|
|
- name: 'Error',
|
|
|
- meta: {
|
|
|
- title: t('router.errorPage'),
|
|
|
- icon: 'ci:error',
|
|
|
- alwaysShow: true
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- path: '404-demo',
|
|
|
- component: () => import('@/views/Error/404.vue'),
|
|
|
- name: '404Demo',
|
|
|
- meta: {
|
|
|
- title: '404'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '403-demo',
|
|
|
- component: () => import('@/views/Error/403.vue'),
|
|
|
- name: '403Demo',
|
|
|
- meta: {
|
|
|
- title: '403'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '500-demo',
|
|
|
- component: () => import('@/views/Error/500.vue'),
|
|
|
- name: '500Demo',
|
|
|
- meta: {
|
|
|
- title: '500'
|
|
|
+ activeMenu: '/manage/product-page'
|
|
|
}
|
|
|
}
|
|
|
]
|