From 010ce04ba6e27f2bd603cec692d2695d7a8a3c1f Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期三, 07 五月 2025 08:38:18 +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