This commit is contained in:
张成
2025-12-22 18:15:05 +08:00
parent 44acef5f7b
commit cd56eb7886

View File

@@ -69,14 +69,17 @@ module.exports = {
// 基础 URL根据环境区分
baseUrl: (() => {
const env = process.env.NODE_ENV || 'development';
console.log('env',env)
switch (env) {
case 'production':
return 'https://work.light120.com'; // 生产环境
case 'development':
default:
return 'http://localhost:9097'; // 开发环境
}
return 'https://work.light120.com';
// switch (env) {
// case 'production':
// // 生产环境
// case 'development':
// default:
// return 'http://localhost:9097'; // 开发环境
// }
})(),
// 日志路径