From de1de0e73bd260cb1babe7b15c9e943a381009de Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期五, 21 三月 2025 17:22:26 +0800 Subject: [PATCH] feat:增加温度系统界面 --- 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