优化 移除多余的环境变量

This commit is contained in:
yuantao
2025-12-01 14:56:14 +08:00
parent 328a53a343
commit 5c6035b6ab
2 changed files with 1 additions and 17 deletions

View File

@@ -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
}