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:
Vendored
+9
-5
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user