2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-05-28 14:04:05 +03:00
Files
vue-meta/test/fixtures/basic/router.js
T
pimlie 05b8891110 test: add e2e tests
fix: boolean attributes client side
2019-03-12 10:03:46 +01:00

19 lines
369 B
JavaScript

import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const Home = () => import('./views/home.vue')
const Post = () => import('./views/about.vue')
export default function createRouter() {
return new Router({
mode: 'hash',
base: '/',
routes: [
{ path: '/', component: Home },
{ path: '/about', component: Post }
]
})
}