diff --git a/src/renderer/pages/PicGoSetting.vue b/src/renderer/pages/PicGoSetting.vue index 7cc3afb..b1112e0 100644 --- a/src/renderer/pages/PicGoSetting.vue +++ b/src/renderer/pages/PicGoSetting.vue @@ -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() diff --git a/src/renderer/pages/Upload.vue b/src/renderer/pages/Upload.vue index d05d3b3..4d968da 100644 --- a/src/renderer/pages/Upload.vue +++ b/src/renderer/pages/Upload.vue @@ -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()