This commit is contained in:
fofolee
2022-03-29 22:34:21 +08:00
parent 30a9a73f30
commit 72d146ba3f
5 changed files with 136 additions and 33 deletions

View File

@@ -1,19 +1,19 @@
const routes = [
{
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => import('pages/IndexPage.vue') }
]
},
// Always leave this as last one,
// but you can also remove it
{
path: '/:catchAll(.*)*',
component: () => import('pages/ErrorNotFound.vue')
}
{
path: '/',
component: () => import('layouts/MainLayout.vue'),
children: [
{ path: '', component: () => import('pages/IndexPage.vue') }
]
},
{
path: '/configuration',
component: () => import('pages/ConfigurationPage.vue')
},
{
path: '/code',
component: () => import('pages/CodeRunner.vue')
}
]
export default routes