1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-26 22:34:42 +03:00
guide/front/client/router/index.ts
2018-09-18 23:59:07 +05:00

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
}