From 5c6035b6ab5d408dc8f49c4f24e81f3de659fc82 Mon Sep 17 00:00:00 2001 From: yuantao Date: Mon, 1 Dec 2025 14:56:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E7=9A=84=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 6 +----- common/utils/tool.js | 12 ------------ 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/.env b/.env index a505eb5..59c14cb 100644 --- a/.env +++ b/.env @@ -3,8 +3,4 @@ VITE_ASSETSURL=https://cdn.vrupup.com/s/1598/assets/ #资源地址 VITE_APPID=wx9cb717d8151d8486 #小程序APPID VITE_UNI_APPID=_UNI_8842336 #UNI-APPID VITE_LIBVERSION=3.0.0 #微信小程序基础库 -VITE_WEBHOOK=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9a401eb2-065a-4882-82e9-b438bcd1eac4#WEBHOOK地址 -# 环境控制 -# VITE_ENABLE_ERROR_MONITOR=true # 强制启用错误监控 -# VITE_DISABLE_ERROR_MONITOR=true # 强制禁用错误监控 -# 默认:开发环境和体验版禁用,生产环境启用 \ No newline at end of file +VITE_WEBHOOK=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=9a401eb2-065a-4882-82e9-b438bcd1eac4#WEBHOOK地址 \ No newline at end of file diff --git a/common/utils/tool.js b/common/utils/tool.js index 7cf4afc..929ae2c 100644 --- a/common/utils/tool.js +++ b/common/utils/tool.js @@ -393,18 +393,6 @@ class Tool { return false } - // 检查自定义环境变量 - const enableProductionMode = import.meta.env.VITE_ENABLE_ERROR_MONITOR === 'true' - const disableProductionMode = import.meta.env.VITE_DISABLE_ERROR_MONITOR === 'true' - - if (disableProductionMode) { - return false - } - - if (enableProductionMode) { - return true - } - // 默认:开发环境和体验版不启用,生产环境启用 return true }