From 1042bfdca194f9590c35b26dcf1e1eecde3b6f01 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期一, 26 五月 2025 10:23:32 +0800 Subject: [PATCH] Merge branch 'master' of http://dlindusit.com:53929/r/iailab-plat-ui-vue3 --- src/utils/download.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/utils/download.ts b/src/utils/download.ts index 1d07484..943374b 100644 --- a/src/utils/download.ts +++ b/src/utils/download.ts @@ -50,7 +50,10 @@ a.download = 'image.png' a.click() } - } + }, + downloadFile: (data: Blob, fileName: string) => { + download0(data, fileName, 'application/octet-stream') + }, } export default download -- Gitblit v1.9.3