2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-23 22:20:33 +03:00

chore: update vue-router example to include refresh once

chore: update example deps
This commit is contained in:
pimlie
2019-02-20 18:32:36 +01:00
parent 679b5d5f0d
commit 087e4abe76
2 changed files with 10 additions and 8 deletions
+4 -2
View File
@@ -3,7 +3,9 @@ import VueMeta from 'vue-meta'
import Router from 'vue-router'
Vue.use(Router)
Vue.use(VueMeta)
Vue.use(VueMeta, {
refreshOnceOnNavigation: true
})
const ChildComponent = {
name: `child-component`,
@@ -28,7 +30,7 @@ const ChildComponent = {
// this wrapper function is not a requirement for vue-router,
// just a demonstration that render-function style components also work.
// See https://github.com/declandewet/vue-meta/issues/9 for more info.
// See https://github.com/nuxt/vue-meta/issues/9 for more info.
function view (page) {
return {
name: `section-${page}`,