mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-18 01:40:34 +03:00
test: add nav-guard tests for refresOnce false
This commit is contained in:
committed by
Alexander Lichter
parent
d717dbf4e1
commit
7cf4efd290
@@ -3,6 +3,7 @@ import { isFunction } from '../utils/is-type'
|
||||
export function addNavGuards(vm) {
|
||||
// return when nav guards already added or no router exists
|
||||
if (vm.$root._vueMeta.navGuards || !vm.$root.$router) {
|
||||
/* istanbul ignore next */
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user