2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-18 03:30:34 +03:00

test: add e2e tests

This commit is contained in:
pimlie
2019-03-21 13:56:15 +01:00
committed by Pim
parent 1acadbc1b4
commit 717c30303f
12 changed files with 5749 additions and 770 deletions
+9 -5
View File
@@ -8,13 +8,17 @@
<script>
export default {
metaInfo: {
meta: [
{ vmid: 'charset', charset: 'utf-8' }
]
metaInfo() {
return {
meta: [
{ vmid: 'charset', charset: 'utf-8' }
],
afterNavigation: () => {
this.$emit('routeChanged')
}
}
},
mounted() {
this.$router.afterEach((to, from) => this.$emit('routeChanged', to, from))
window.$vueMeta = this
}
}
+1 -1
View File
@@ -1,9 +1,9 @@
import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/home.vue'
Vue.use(Router)
const Home = () => import('./views/home.vue')
const Post = () => import('./views/about.vue')
export default function createRouter() {