From 98247bb0b4da9a322c97867262c1a76c53ace520 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期三, 26 三月 2025 17:05:18 +0800 Subject: [PATCH] fix: 生态报表 --- src/utils/index.js | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 8994d62..c86a731 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -476,12 +476,12 @@ /** * blob文件流导出 */ -export function exportBlobFile(blob) { +export function exportBlobFile(blob, name) { const link = document.createElement('a') const url = URL || window.webkitURL const href = url.createObjectURL(blob) link.href = href; - link.download = '报警记录.xlsx' + link.download = name + '.xlsx' link.click() } -- Gitblit v1.9.3