From 3063612394504cb9eab8e0d58e704337e71f181b Mon Sep 17 00:00:00 2001 From: Kuingsmile Date: Tue, 21 Nov 2023 01:31:49 -0800 Subject: [PATCH] :bug: Fix(custom): fix gallery page url copy bug --- src/renderer/pages/Gallery.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'),