mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-06 19:42:27 +03:00
05b8891110
fix: boolean attributes client side
22 lines
392 B
Vue
22 lines
392 B
Vue
<template>
|
|
<div id="app">
|
|
<h1>Basic</h1>
|
|
<router-view></router-view>
|
|
<p>Inspect Element to see the meta info</p>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
metaInfo: {
|
|
meta: [
|
|
{ vmid: 'charset', charset: 'utf-8' }
|
|
]
|
|
},
|
|
mounted() {
|
|
this.$router.afterEach((to, from) => this.$emit('routeChanged', to, from))
|
|
window.$vueMeta = this
|
|
}
|
|
}
|
|
</script>
|