From 3d9021acc6597a2e62ba5e257fc171e84da29991 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 3 Nov 2025 17:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E5=B7=A5=E5=85=B7=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trials-inspection/components/pullImage/byTool.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-inspection/components/pullImage/byTool.vue b/src/views/trials/trials-inspection/components/pullImage/byTool.vue index 22a9565..04d7e0f 100644 --- a/src/views/trials/trials-inspection/components/pullImage/byTool.vue +++ b/src/views/trials/trials-inspection/components/pullImage/byTool.vue @@ -111,7 +111,15 @@ export default { .toLocaleLowerCase() fileName += extendName } - res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName) + const a = document.createElement('a') + // xls类型: application/vnd.ms-excel + // xlsx类型:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8 + const href = this.OSSclientConfig.basePath + row.Path + a.download = fileName + a.href = href + a.click() + URL.revokeObjectURL(href) + // res = await downLoadFile(this.OSSclientConfig.basePath + row.Path, fileName) } this.downloading = false } catch (err) {