mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-13 04:42:24 +03:00
fix: only add navguards when refreshOnceOnNav is false
This commit is contained in:
committed by
Alexander Lichter
parent
93fb900a85
commit
93f021b757
+1
-1
@@ -94,7 +94,7 @@ export default function createMixin(Vue, options) {
|
||||
// add the navigation guards if they havent been added yet
|
||||
// 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
|
||||
if (this.$options[options.keyName].afterNavigation) {
|
||||
if (!options.refreshOnceOnNavigation && this.$options[options.keyName].afterNavigation) {
|
||||
addNavGuards(this)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user