From 45505faaa7a99a899a69499f7407411a20a947ff Mon Sep 17 00:00:00 2001 From: dlaren Date: Wed, 20 Aug 2025 15:26:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=20?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E7=AE=A1=E7=90=86=E7=9A=84=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=E4=B8=BAusername?= =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/monitor/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/monitor/monitor/index.vue b/src/views/monitor/monitor/index.vue index 45e6b74..f4ed455 100644 --- a/src/views/monitor/monitor/index.vue +++ b/src/views/monitor/monitor/index.vue @@ -206,7 +206,7 @@ @@ -378,8 +378,8 @@ const handleDelete = async (id: number) => { } catch {} } -const downloadFile = async (temporaryId: string) => { - const res = await MonitorApi.getMonitorStuFileUrl(temporaryId) +const downloadFile = async (row: any) => { + const res = await MonitorApi.getMonitorStuFileUrl(row.temporaryId) console.log(res) const url = res try { @@ -391,7 +391,7 @@ const downloadFile = async (temporaryId: string) => { const blobUrl = window.URL.createObjectURL(blob) // 提取文件名 - const filename = url.substring(url.lastIndexOf('/') + 1).split('?')[0] + const filename = row.username // 创建 a 标签并下载 const a = document.createElement('a')