diff --git a/JsonExcel.vue b/JsonExcel.vue index d4429d0..1140a14 100644 --- a/JsonExcel.vue +++ b/JsonExcel.vue @@ -56,14 +56,9 @@ export default { headerRow += ' \n'; } headerRow += '\n'; - var metatags = null; - this.meta.forEach(function(element) { - metatags += ''; - }); + var metatags = this.meta.reduce(function(tags, obj) { + return [tags, ''].join(''); + }, ''); return '
'+metatags+'