mirror of
https://github.com/aelve/guide.git
synced 2024-12-26 22:34:42 +03:00
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
import Router from 'vue-router'
|
|
|
|
function createRouter () {
|
|
return new Router({
|
|
mode: 'history',
|
|
fallback: false,
|
|
scrollBehavior: () => ({ x: 0, y: 0 }),
|
|
routes: [
|
|
{ path: '/', component: () => import('../page/Index.vue') },
|
|
{ path: '/haskell', component: () => import('../page/ArticlePage.vue') }
|
|
]
|
|
})
|
|
}
|
|
|
|
export {
|
|
createRouter
|
|
}
|