🐛 Fix(custom): update formatConvertObj to use JSON.stringify

This commit is contained in:
Kuingsmile 2024-01-15 21:54:28 -08:00
parent 4fcf3efcab
commit 719e74f77d
2 changed files with 2 additions and 2 deletions

View File

@ -1725,7 +1725,7 @@ function handleSaveConfig () {
return imageExtList.includes(item[0]) && availableFormat.includes(item[1])
})
const formatConvertObjFilter = Object.fromEntries(formatConvertObjEntriesFilter)
compressForm.formatConvertObj = formatConvertObjFilter
compressForm.formatConvertObj = JSON.stringify(formatConvertObjFilter)
saveConfig('buildIn.compress', toRaw(compressForm))
saveConfig('buildIn.watermark', toRaw(waterMarkForm))
closeDialog()

View File

@ -535,7 +535,7 @@ function handleSaveConfig () {
return imageExtList.includes(item[0]) && availableFormat.includes(item[1])
})
const formatConvertObjFilter = Object.fromEntries(formatConvertObjEntriesFilter)
compressForm.formatConvertObj = formatConvertObjFilter
compressForm.formatConvertObj = JSON.stringify(formatConvertObjFilter)
saveConfig('buildIn.compress', toRaw(compressForm))
saveConfig('buildIn.watermark', toRaw(waterMarkForm))
closeDialog()