mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-17 05:09:38 +03:00
chore: update vue-router example to include refresh once
chore: update example deps
This commit is contained in:
@@ -19,21 +19,21 @@
|
||||
},
|
||||
"homepage": "https://github.com/nuxt/vue-meta#readme",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.2.2",
|
||||
"@babel/core": "^7.3.3",
|
||||
"@babel/node": "^7.2.2",
|
||||
"@babel/preset-env": "^7.3.1",
|
||||
"babel-loader": "^8.0.5",
|
||||
"cross-env": "^5.2.0",
|
||||
"express": "^4.16.4",
|
||||
"express-urlrewrite": "^1.2.0",
|
||||
"vue": "^2.6.3",
|
||||
"vue-loader": "^15.6.2",
|
||||
"vue": "^2.6.6",
|
||||
"vue-loader": "^15.6.4",
|
||||
"vue-meta": "^1.5.8",
|
||||
"vue-router": "^3.0.2",
|
||||
"vue-template-compiler": "^2.6.3",
|
||||
"vue-template-compiler": "^2.6.6",
|
||||
"vuex": "^3.1.0",
|
||||
"webpack": "^4.26.1",
|
||||
"webpack-dev-server": "^3.1.10",
|
||||
"webpack": "^4.29.5",
|
||||
"webpack-dev-server": "^3.2.0",
|
||||
"webpackbar": "^3.1.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user