mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
🐛 Fix(custom): update formatConvertObj to use JSON.stringify
This commit is contained in:
parent
4fcf3efcab
commit
719e74f77d
@ -1725,7 +1725,7 @@ function handleSaveConfig () {
|
|||||||
return imageExtList.includes(item[0]) && availableFormat.includes(item[1])
|
return imageExtList.includes(item[0]) && availableFormat.includes(item[1])
|
||||||
})
|
})
|
||||||
const formatConvertObjFilter = Object.fromEntries(formatConvertObjEntriesFilter)
|
const formatConvertObjFilter = Object.fromEntries(formatConvertObjEntriesFilter)
|
||||||
compressForm.formatConvertObj = formatConvertObjFilter
|
compressForm.formatConvertObj = JSON.stringify(formatConvertObjFilter)
|
||||||
saveConfig('buildIn.compress', toRaw(compressForm))
|
saveConfig('buildIn.compress', toRaw(compressForm))
|
||||||
saveConfig('buildIn.watermark', toRaw(waterMarkForm))
|
saveConfig('buildIn.watermark', toRaw(waterMarkForm))
|
||||||
closeDialog()
|
closeDialog()
|
||||||
|
@ -535,7 +535,7 @@ function handleSaveConfig () {
|
|||||||
return imageExtList.includes(item[0]) && availableFormat.includes(item[1])
|
return imageExtList.includes(item[0]) && availableFormat.includes(item[1])
|
||||||
})
|
})
|
||||||
const formatConvertObjFilter = Object.fromEntries(formatConvertObjEntriesFilter)
|
const formatConvertObjFilter = Object.fromEntries(formatConvertObjEntriesFilter)
|
||||||
compressForm.formatConvertObj = formatConvertObjFilter
|
compressForm.formatConvertObj = JSON.stringify(formatConvertObjFilter)
|
||||||
saveConfig('buildIn.compress', toRaw(compressForm))
|
saveConfig('buildIn.compress', toRaw(compressForm))
|
||||||
saveConfig('buildIn.watermark', toRaw(waterMarkForm))
|
saveConfig('buildIn.watermark', toRaw(waterMarkForm))
|
||||||
closeDialog()
|
closeDialog()
|
||||||
|
Loading…
Reference in New Issue
Block a user