🐛 Fix(custom): fix gallery page url copy bug

This commit is contained in:
Kuingsmile 2023-11-21 01:31:49 -08:00
parent a235e07912
commit 3063612394

View File

@ -684,7 +684,7 @@ function handleClose () {
} }
async function copy (item: ImgInfo) { 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 copyLink = await ipcRenderer.invoke(PASTE_TEXT, item)
const obj = { const obj = {
title: $T('COPY_LINK_SUCCEED'), title: $T('COPY_LINK_SUCCEED'),