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