From a852f60c30a4390fd0e07757882843dec05fcacf Mon Sep 17 00:00:00 2001 From: elkers <elkers@163.com> Date: 星期二, 25 三月 2025 10:06:16 +0800 Subject: [PATCH] 删除监控点类型 --- src/utils/index.js | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 35b043c..8994d62 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -472,4 +472,16 @@ export function isNumberStr(str) { return /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g.test(str) } + +/** + * blob文件流导出 + */ +export function exportBlobFile(blob) { + const link = document.createElement('a') + const url = URL || window.webkitURL + const href = url.createObjectURL(blob) + link.href = href; + link.download = '报警记录.xlsx' + link.click() +} -- Gitblit v1.9.3