2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-24 17:50:35 +03:00

fix: only add navguards when refreshOnceOnNav is false

This commit is contained in:
pimlie
2019-03-10 21:54:54 +01:00
committed by Alexander Lichter
parent 93fb900a85
commit 93f021b757
+1 -1
View File
@@ -94,7 +94,7 @@ export default function createMixin(Vue, options) {
// add the navigation guards if they havent been added yet // add the navigation guards if they havent been added yet
// if metaInfo is defined as a function, this does call the computed fn redundantly // if metaInfo is defined as a function, this does call the computed fn redundantly
// but as Vue internally caches the results of computed props it shouldnt hurt performance // but as Vue internally caches the results of computed props it shouldnt hurt performance
if (this.$options[options.keyName].afterNavigation) { if (!options.refreshOnceOnNavigation && this.$options[options.keyName].afterNavigation) {
addNavGuards(this) addNavGuards(this)
} }