debug 日志修改
This commit is contained in:
parent
c2d5996f53
commit
35130d8c01
@ -5,8 +5,7 @@
|
|||||||
// 环境类型
|
// 环境类型
|
||||||
export const ENV_TYPES = {
|
export const ENV_TYPES = {
|
||||||
DEVELOPMENT: 'development',
|
DEVELOPMENT: 'development',
|
||||||
TEST: 'test',
|
TEST: 'test'
|
||||||
PRODUCTION: 'production'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取当前环境
|
// 获取当前环境
|
||||||
@ -62,8 +61,10 @@ export function logEnvInfo() {
|
|||||||
const config = getEnvConfig()
|
const config = getEnvConfig()
|
||||||
console.group('🔧 Environment Configuration')
|
console.group('🔧 Environment Configuration')
|
||||||
console.log('📦 Environment:', config.env)
|
console.log('📦 Environment:', config.env)
|
||||||
console.log('🌐 API Base URL:', config.apiBaseUrl)
|
|
||||||
console.log('📱 App Title:', config.appTitle)
|
console.log('📱 App Title:', config.appTitle)
|
||||||
console.log('🐛 Debug Mode:', config.isDebugMode)
|
if (config.isDebugMode) {
|
||||||
|
console.log('🐛 Debug Mode:', config.isDebugMode)
|
||||||
|
console.log('🌐 API Base URL:', config.apiBaseUrl)
|
||||||
|
}
|
||||||
console.groupEnd()
|
console.groupEnd()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user