2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-09 04:42:25 +03:00

chore: add missing

This commit is contained in:
pimlie
2019-09-13 15:18:24 +02:00
committed by Pim
parent 9eba2b558a
commit c1b01b991f
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -48,12 +48,12 @@ export default function createMixin (Vue, options) {
if (!this[rootConfigKey]) {
this[rootConfigKey] = true
let p = this.$parent
while (p && p !== $root) {
if (isUndefined(p[rootConfigKey])) {
p[rootConfigKey] = false
let parent = this.$parent
while (parent && parent !== $root) {
if (isUndefined(parent[rootConfigKey])) {
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
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
+1 -1
View File
@@ -25,6 +25,6 @@ export default {
return {
childVisible: false
}
f }
}
}
</script>