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(() => { }) -