1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-27 15:41:18 +03:00
guide/front/client/router/index.ts

18 lines
368 B
TypeScript
Raw Normal View History

import Router from 'vue-router'
function createRouter () {
return new Router({
mode: 'history',
fallback: false,
scrollBehavior: () => ({ x: 0, y: 0 }),
routes: [
2018-09-05 23:45:46 +03:00
{ path: '/', component: () => import('../page/Index.vue') },
2018-09-18 21:59:07 +03:00
{ path: '/haskell', component: () => import('../page/ArticlePage.vue') }
]
})
}
export {
createRouter
}