From 9631059731ceb3e119101de3f7e27f6dd76da324 Mon Sep 17 00:00:00 2001
From: web <candymxq888@outlook.com>
Date: 星期三, 23 四月 2025 17:21:55 +0800
Subject: [PATCH] fix:修改水温报表,配置测试环境

---
 src/utils/index.js |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/utils/index.js b/src/utils/index.js
index 8136ba5..c86a731 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -14,17 +14,15 @@
       let routesData = JSON.parse(JSON.stringify(menuStore.sidebarRouters));
       //定义路径模式
       const views = import.meta.glob('../views/**/*/index.vue');
-      // console.log('routesData',routesData)
       //组装成router需要的格式(加上component和meta)
       routesData = setActiveRoute(routesData, views) //设置路由
       // console.log('组装完成',routesData)
       routesData.forEach((item) => {
-          // console.log(router)
           //路由数据解析完成,开始添加到本地路由表中
-          router.addRoute('/', item);
+         router.addRoute('/', item);
           // console.log('item',item)
       });
-      console.log('router', router.getRoutes())
+      //console.log('router', router.getRoutes())
   }
 }
 import Layout from '@/layout'
@@ -474,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