mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 18:59:37 +03:00
19 lines
359 B
JavaScript
19 lines
359 B
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import Home from './views/home.vue'
|
|
|
|
Vue.use(Router)
|
|
|
|
const Post = () => import('./views/about.vue')
|
|
|
|
export default function createRouter() {
|
|
return new Router({
|
|
mode: 'hash',
|
|
base: '/',
|
|
routes: [
|
|
{ path: '/', component: Home },
|
|
{ path: '/about', component: Post }
|
|
]
|
|
})
|
|
}
|