You've already forked template-MP
优化 移除多余的环境变量
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user