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:
@@ -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
|
||||
|
||||
@@ -21,7 +21,7 @@ export default function inject () {
|
||||
noscript: [],
|
||||
style: [],
|
||||
link: [],
|
||||
base: {}
|
||||
base: []
|
||||
}, getMetaInfo(this.$root))
|
||||
|
||||
// generate server injectors
|
||||
|
||||
Reference in New Issue
Block a user