mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 04:10:35 +03:00
fix bug where old metadata would persist after returning from a child route to the parent
This commit is contained in:
@@ -61,6 +61,10 @@ export default function VueMeta (Vue, options = {}) {
|
|||||||
beforeMount () {
|
beforeMount () {
|
||||||
// batch potential DOM updates to prevent extraneous re-rendering
|
// batch potential DOM updates to prevent extraneous re-rendering
|
||||||
batchID = batchUpdate(batchID, () => this.$meta().refresh())
|
batchID = batchUpdate(batchID, () => this.$meta().refresh())
|
||||||
|
},
|
||||||
|
destroyed () {
|
||||||
|
// batch potential DOM updates to prevent extraneous re-rendering
|
||||||
|
batchID = batchUpdate(batchID, () => this.$meta().refresh())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user