mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
✨ Feature: add picbed config name in upload page
This commit is contained in:
parent
be68f0fadb
commit
0a3114339b
@ -8,7 +8,7 @@
|
||||
:span="24"
|
||||
>
|
||||
<div class="view-title">
|
||||
{{ $T('PICTURE_UPLOAD') }} - {{ picBedName }}
|
||||
{{ $T('PICTURE_UPLOAD') }} - {{ picBedName }} - {{ picBedConfigName }}
|
||||
<el-icon
|
||||
style="cursor: pointer; margin-left: 4px;"
|
||||
@click="handleChangePicBed"
|
||||
@ -140,6 +140,7 @@ const pasteStyle = ref('')
|
||||
const picBed = ref<IPicBedType[]>([])
|
||||
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<string>(`picBed.${currentPicBed}._configName`) || ''
|
||||
}
|
||||
|
||||
function getPicBeds (_event: Event, picBeds: IPicBedType[]) {
|
||||
|
Loading…
Reference in New Issue
Block a user