diff --git a/desktop/src/features/download/DownloadManagerView.vue b/desktop/src/features/download/DownloadManagerView.vue index 8559c9c..e3af940 100644 --- a/desktop/src/features/download/DownloadManagerView.vue +++ b/desktop/src/features/download/DownloadManagerView.vue @@ -2,7 +2,7 @@ import { computed, onMounted, onUnmounted, ref } from "vue"; import { NButton, NCheckbox, NEmpty, NIcon, NInputNumber, NProgress, NTag, NTooltip, useDialog, useMessage } from "naive-ui"; import { ChevronBackOutline, FolderOpenOutline, HelpCircleOutline, PauseOutline, PlayOutline, StopCircleOutline, TrashOutline } from "@vicons/ionicons5"; -import { ApiError, openLocal, revealLocal } from "../../shared/http"; +import { ApiError, revealLocal } from "../../shared/http"; import { cancelJob, deleteJob, loadDownloadSettings, loadJobs, pauseJob, resumeJob, saveDownloadSettings, updateConcurrency, type DownloadJob } from "./api"; const props = defineProps<{ focusId: string }>(); @@ -228,11 +228,6 @@ async function resume(job: DownloadJob) { } } -async function openFile(job: DownloadJob) { - const opened = await openLocal(job.csvPath).catch(() => false); - if (!opened) message.info(job.csvPath); -} - async function openDir(job: DownloadJob) { const revealed = await revealLocal(job.csvPath).catch(() => false); if (!revealed) message.info(job.csvPath); @@ -377,7 +372,6 @@ async function removeJob(job: DownloadJob, files: boolean) { 继续 - 打开 @@ -505,9 +499,6 @@ async function removeJob(job: DownloadJob, files: boolean) {
- - {{ statusLabel(job) }} -