修复字段为空时写入undefined的问题

pull/225/head
lyswhut 2020-03-24 11:53:36 +08:00
parent cdd7774a73
commit f59a160249
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const vendor = 'reference libFLAC 1.2.1 20070917'
const writeMeta = (filePath, meta, picPath) => {
const comments = Object.keys(meta).map(key => `${key.toUpperCase()}=${meta[key]}`)
const comments = Object.keys(meta).map(key => `${key.toUpperCase()}=${meta[key] || ''}`)
const data = {
vorbis: {
vendor,