diff --git a/src/main/apis/app/uploader/index.ts b/src/main/apis/app/uploader/index.ts
index 34e6078..9f16225 100644
--- a/src/main/apis/app/uploader/index.ts
+++ b/src/main/apis/app/uploader/index.ts
@@ -164,7 +164,7 @@ class Uploader {
} as IAnalyticsData)
}
output.forEach((item: ImgInfo) => {
- item.config = db.get(`picBed.${item.type}`)
+ item.config = JSON.parse(JSON.stringify(db.get(`picBed.${item.type}`)))
})
return output.filter(item => item.imgUrl)
} else {
diff --git a/src/renderer/pages/Gallery.vue b/src/renderer/pages/Gallery.vue
index 07d9cc9..d92e5b8 100644
--- a/src/renderer/pages/Gallery.vue
+++ b/src/renderer/pages/Gallery.vue
@@ -402,6 +402,7 @@ function handleClose () {
}
async function copy (item: ImgInfo) {
+ item.config = JSON.parse(JSON.stringify(item.config))
const copyLink = await ipcRenderer.invoke(PASTE_TEXT, item)
const obj = {
title: $T('COPY_LINK_SUCCEED'),
diff --git a/src/renderer/pages/Upload.vue b/src/renderer/pages/Upload.vue
index 3ae58a6..ebd32d5 100644
--- a/src/renderer/pages/Upload.vue
+++ b/src/renderer/pages/Upload.vue
@@ -76,10 +76,9 @@
label="UBB"
title="[img]url[/img]"
/>
-
@@ -140,6 +139,7 @@ const showError = ref(false)
const pasteStyle = ref('')
const picBed = ref([])
const picBedName = ref('')
+const customLink = ref('')
onBeforeMount(() => {
ipcRenderer.on('uploadProgress', (_event: IpcRendererEvent, _progress: number) => {
if (_progress !== -1) {
@@ -242,6 +242,7 @@ function ipcSendFiles (files: FileList) {
async function getPasteStyle () {
pasteStyle.value = await getConfig('settings.pasteStyle') || 'markdown'
+ customLink.value = await getConfig('settings.customLink') || '$url'
}
function handlePasteStyleChange (val: string | number | boolean) {