separate routes from router definition

This commit is contained in:
axolotle
2021-03-08 15:48:21 +01:00
parent f6865268f4
commit 738f0cf452
2 changed files with 19 additions and 20 deletions
+17
View File
@@ -0,0 +1,17 @@
import Home from '@/pages/Home'
export default [
{
name: 'home',
path: '/',
component: Home
},
{
name: 'notfound',
path: '/404',
alias: '*',
component: () => import(/* webpackChunkName: "404" */ '@/pages/NotFound.vue')
}
]