diff --git a/config/framework.config.js b/config/framework.config.js index d529bed..3d85bb8 100644 --- a/config/framework.config.js +++ b/config/framework.config.js @@ -71,15 +71,14 @@ module.exports = { const env = process.env.NODE_ENV || 'development'; console.log('env',env) - return 'https://work.light120.com'; - - // switch (env) { - // case 'production': - // // 生产环境 - // case 'development': - // default: - // return 'http://localhost:9097'; // 开发环境 - // } + switch (env) { + case 'production': + return 'https://work.light120.com'; + // 生产环境 + case 'development': + default: + return 'http://localhost:9097'; // 开发环境 + } })(), // 日志路径