diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue index 395a988..3ee3296 100644 --- a/src/renderer/pages/Gallery.vue +++ b/src/renderer/pages/Gallery.vue @@ -684,7 +684,7 @@ function handleClose () { } async function copy (item: ImgInfo) { - item.config = JSON.parse(JSON.stringify(item.config)) + item.config = JSON.parse(JSON.stringify(item.config) || '{}') const copyLink = await ipcRenderer.invoke(PASTE_TEXT, item) const obj = { title: $T('COPY_LINK_SUCCEED'),