From 0568fa140511a5df539dbc87759bb2040e7d8b10 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期二, 06 五月 2025 15:06:52 +0800 Subject: [PATCH] 模型管理数据分析页面增加授权功能,以供第三方嵌入 --- 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