From 0ff985f606cd21f44d56f42c903dfcc8b52be099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Mon, 22 Dec 2025 18:18:09 +0800 Subject: [PATCH] 1 --- config/framework.config.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) 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'; // 开发环境 + } })(), // 日志路径