From d20fcd6ad28a534d763273c48381cdc36ff2891f Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期六, 19 四月 2025 17:25:44 +0800 Subject: [PATCH] fix:对接监控视频 --- 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..c86a731 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, name) { + const link = document.createElement('a') + const url = URL || window.webkitURL + const href = url.createObjectURL(blob) + link.href = href; + link.download = name + '.xlsx' + link.click() +} -- Gitblit v1.9.3