2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-07 12:22:25 +03:00

fix bug where old metadata would persist after returning from a child route to the parent

This commit is contained in:
jazoom
2017-04-06 19:14:18 +10:00
committed by GitHub
parent ba2ae97a43
commit a77b2ed487
+4
View File
@@ -61,6 +61,10 @@ export default function VueMeta (Vue, options = {}) {
beforeMount () {
// batch potential DOM updates to prevent extraneous re-rendering
batchID = batchUpdate(batchID, () => this.$meta().refresh())
},
destroyed () {
// batch potential DOM updates to prevent extraneous re-rendering
batchID = batchUpdate(batchID, () => this.$meta().refresh())
}
})
}