2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-23 19:20:34 +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]) { 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
+1 -1
View File
@@ -25,6 +25,6 @@ export default {
return { return {
childVisible: false childVisible: false
} }
f } }
} }
</script> </script>