From 51aad628b50629e65db6f295baa8d3eebbd47504 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 10 Dec 2025 14:20:59 +0800 Subject: [PATCH] fix path mapping ui --- src/components/cards/DownloaderCard.vue | 162 ++++++++++++------------ 1 file changed, 80 insertions(+), 82 deletions(-) diff --git a/src/components/cards/DownloaderCard.vue b/src/components/cards/DownloaderCard.vue index b6db10a1..6ec0387f 100644 --- a/src/components/cards/DownloaderCard.vue +++ b/src/components/cards/DownloaderCard.vue @@ -59,16 +59,14 @@ const downloaderForm = ref() const prefixOptions = computed(() => { return storageAttributes.map(item => ({ title: t(`storage.${item.type}`), - value: item.type + value: item.type, })) }) function getStorageType(path: string) { if (!path) return 'local' // 查找匹配的存储类型 - const storage = storageAttributes.find( - s => s.type !== 'local' && path.startsWith(`${s.type}:`) - ) + const storage = storageAttributes.find(s => s.type !== 'local' && path.startsWith(`${s.type}:`)) return storage?.type || 'local' } @@ -218,7 +216,7 @@ function addPathMapping() { pathMappingRows.value.push({ id: generateId(), storage: '', - download: '' + download: '', }) } @@ -246,37 +244,6 @@ onUnmounted(() => { }) -