mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 08:30:33 +03:00
Call changed() with vm context
This commit is contained in:
@@ -14,7 +14,7 @@ export default function _refresh (options = {}) {
|
|||||||
*/
|
*/
|
||||||
return function refresh () {
|
return function refresh () {
|
||||||
const info = getMetaInfo(options)(this.$root)
|
const info = getMetaInfo(options)(this.$root)
|
||||||
updateClientMetaInfo(options)(info)
|
updateClientMetaInfo(options).call(this, info)
|
||||||
return info
|
return info
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export default function _updateClientMetaInfo (options = {}) {
|
|||||||
|
|
||||||
// emit "event" with new info
|
// emit "event" with new info
|
||||||
if (typeof newInfo.changed === 'function') {
|
if (typeof newInfo.changed === 'function') {
|
||||||
newInfo.changed(newInfo, addedTags, removedTags)
|
newInfo.changed.call(this, newInfo, addedTags, removedTags)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// remove the server render attribute so we can update on changes
|
// remove the server render attribute so we can update on changes
|
||||||
|
|||||||
Reference in New Issue
Block a user