mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-21 09:10: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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user