From 9c42f79e99bec9ff93bec091b6dfc8b63bf6e078 Mon Sep 17 00:00:00 2001
From: "Ray.Hao" <1490493387@qq.com>
Date: Fri, 16 Oct 2026 20:32:09 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B8=85=E7=90=86=E8=B0=83=E8=AF=95?=
=?UTF-8?q?=E8=BE=93=E5=87=BA=E5=B9=B6=E5=B0=86=E7=9B=91=E6=8E=A7=E5=9C=B0?=
=?UTF-8?q?=E5=9D=80=E6=94=B9=E4=B8=BA=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 移除第三方图表组件的调试输出
- 监控页地址改读环境变量并删除无意义的 ref 包装
- 存储工具补解析失败的类型边界说明
---
.env.development | 3 +++
src/components/qiun-data-charts/qiun-data-charts.vue | 3 ---
src/subPages/work/monitor/index.vue | 6 ++----
src/utils/storage.ts | 2 +-
4 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/.env.development b/.env.development
index a2380e4..5339033 100644
--- a/.env.development
+++ b/.env.development
@@ -13,3 +13,6 @@ VITE_PROXY_TARGET=https://api.youlai.tech # 线上
# 接口地址(小程序/App 直连,H5 走代理用不到)
VITE_APP_API_URL=https://api.youlai.tech # 线上
# VITE_APP_API_URL=http://localhost:8000 # 本地
+
+# 应用监控地址(工作台-应用监控)
+VITE_APP_MONITOR_URL=http://localhost:9090/wallboard
diff --git a/src/components/qiun-data-charts/qiun-data-charts.vue b/src/components/qiun-data-charts/qiun-data-charts.vue
index 9ac2dab..a9ec644 100644
--- a/src/components/qiun-data-charts/qiun-data-charts.vue
+++ b/src/components/qiun-data-charts/qiun-data-charts.vue
@@ -528,9 +528,6 @@ export default {
name: "error",
params: { type: "error", errorShow: this.errorShow, msg: val, id: this.cid },
});
- if (this.errorShow) {
- console.log("[秋云图表组件]" + val);
- }
}
},
errorMessage(val, oldval) {
diff --git a/src/subPages/work/monitor/index.vue b/src/subPages/work/monitor/index.vue
index 6b4f4a3..dfe0d70 100644
--- a/src/subPages/work/monitor/index.vue
+++ b/src/subPages/work/monitor/index.vue
@@ -3,13 +3,11 @@
diff --git a/src/utils/storage.ts b/src/utils/storage.ts
index dfaaf69..5829f9b 100644
--- a/src/utils/storage.ts
+++ b/src/utils/storage.ts
@@ -19,7 +19,7 @@ function get(key: string, defaultValue?: T): T {
try {
return JSON.parse(value);
} catch {
- // 如果解析失败,返回原始字符串
+ // 如果解析失败,返回原始字符串;历史数据可能未经 JSON 序列化,类型由调用方保证
return value as unknown as T;
}
}