mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 20:30:34 +03:00
chore: add missing
This commit is contained in:
+6
-6
@@ -48,12 +48,12 @@ export default function createMixin (Vue, options) {
|
|||||||
if (!this[rootConfigKey]) {
|
if (!this[rootConfigKey]) {
|
||||||
this[rootConfigKey] = true
|
this[rootConfigKey] = true
|
||||||
|
|
||||||
let p = this.$parent
|
let parent = this.$parent
|
||||||
while (p && p !== $root) {
|
while (parent && parent !== $root) {
|
||||||
if (isUndefined(p[rootConfigKey])) {
|
if (isUndefined(parent[rootConfigKey])) {
|
||||||
p[rootConfigKey] = false
|
parent[rootConfigKey] = false
|
||||||
}
|
}
|
||||||
p = p.$parent
|
parent = parent.$parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ export default function createMixin (Vue, options) {
|
|||||||
|
|
||||||
// no need to add this hooks on server side
|
// no need to add this hooks on server side
|
||||||
updateOnLifecycleHook.forEach((lifecycleHook) => {
|
updateOnLifecycleHook.forEach((lifecycleHook) => {
|
||||||
ensuredPush($options, lifecycleHook, () => triggerUpdate(this, lifecycleHook))
|
ensuredPush($options, lifecycleHook, () => triggerUpdate($root, lifecycleHook))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// TODO: move back into beforeCreate when Vue issue is resolved
|
// TODO: move back into beforeCreate when Vue issue is resolved
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ export default {
|
|||||||
return {
|
return {
|
||||||
childVisible: false
|
childVisible: false
|
||||||
}
|
}
|
||||||
f }
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user