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 }