fix(vue-renderer): dont mutate options.head (#6429)

This commit is contained in:
Pim 2019-09-17 15:14:10 +02:00 committed by Pooya Parsa
parent 0e0149d821
commit 2d0f28fa75

View File

@ -53,7 +53,7 @@ export default class SPARenderer extends BaseRenderer {
if (typeof this.options.head === 'function') { if (typeof this.options.head === 'function') {
head = this.options.head() head = this.options.head()
} else { } else {
head = this.options.head head = cloneDeep(this.options.head)
} }
const m = VueMeta.generate(head || {}, this.vueMetaConfig) const m = VueMeta.generate(head || {}, this.vueMetaConfig)