From 0a3114339b2707188c09f3c91cd5e864a79380b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E8=90=8C=E5=93=92=E8=B5=AB=E8=90=9D?= Date: Thu, 23 Feb 2023 14:02:21 +0800 Subject: [PATCH] :sparkles: Feature: add picbed config name in upload page --- src/renderer/pages/Upload.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/pages/Upload.vue b/src/renderer/pages/Upload.vue index ebd32d5..5ce36af 100644 --- a/src/renderer/pages/Upload.vue +++ b/src/renderer/pages/Upload.vue @@ -8,7 +8,7 @@ :span="24" >
- {{ $T('PICTURE_UPLOAD') }} - {{ picBedName }} + {{ $T('PICTURE_UPLOAD') }} - {{ picBedName }} - {{ picBedConfigName }} ([]) const picBedName = ref('') const customLink = ref('') +const picBedConfigName = ref('') onBeforeMount(() => { ipcRenderer.on('uploadProgress', (_event: IpcRendererEvent, _progress: number) => { if (_progress !== -1) { @@ -282,6 +283,7 @@ async function getDefaultPicBed () { picBedName.value = item.name } }) + picBedConfigName.value = await getConfig(`picBed.${currentPicBed}._configName`) || '' } function getPicBeds (_event: Event, picBeds: IPicBedType[]) {