2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-08 03: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
@@ -31,5 +31,10 @@ export default function getMetaInfo (component) {
info.title = info.titleTemplate.replace(/%s/g, info.titleChunk)
}
// convert base tag to an array
if (info.base) {
info.base = Object.keys(info.base).length ? [info.base] : []
}
return info
}