separate routes from router definition
This commit is contained in:
@@ -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')
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user