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

support for client tag updates

This commit is contained in:
Declan de Wet
2016-11-03 08:08:43 +02:00
parent f7e793d025
commit bb98313007
5 changed files with 86 additions and 6 deletions
-5
View File
@@ -10,11 +10,6 @@ import { VUE_META_ATTRIBUTE } from '../../shared/constants'
export default function tagGenerator (type, tags) {
return {
text () {
// there can only be one `base` tag on a page, so we give it special treatment
if (type === 'base') {
tags = Object.keys(tags).length ? [tags] : []
}
// build a string containing all tags of this type
return tags.reduce((tagsStr, tag) => {
// build a string containing all attributes of this tag
+1 -1
View File
@@ -21,7 +21,7 @@ export default function inject () {
noscript: [],
style: [],
link: [],
base: {}
base: []
}, getMetaInfo(this.$root))
// generate server injectors