路由配置

This commit is contained in:
fofolee
2022-03-30 20:59:52 +08:00
parent 1c7c3c95b8
commit c631130edd
9 changed files with 46 additions and 225 deletions

View File

@@ -1,11 +1,4 @@
const routes = [
{
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => import('pages/IndexPage.vue') }
]
},
{
path: '/configuration',
component: () => import('pages/ConfigurationPage.vue')
@@ -13,7 +6,20 @@ const routes = [
{
path: '/code',
component: () => import('pages/CodeRunner.vue')
},
{
path: '/newcommand',
component: () => import('pages/NewCommand.vue')
},
{
path: '/:type(default|files|key|regex|window|professional)_:uid(\\w{11})',
component: () => import('pages/CommandPage.vue')
},
{
path: '/panel_:tags(\\w+)',
component: () => import('pages/QuickPanel.vue')
}
]
export default routes