From ee75aab657607030266aa3d54d921f90998cd79b Mon Sep 17 00:00:00 2001 From: daihh Date: Tue, 20 Dec 2022 18:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/index.js b/config/index.js index 6c4529f..c2bca91 100644 --- a/config/index.js +++ b/config/index.js @@ -18,7 +18,7 @@ if(process.env.NODE_ENV === 'development'){ socialApiBaseUrl='/socialApi'; fileUrl = 'http://192.168.0.11:9090/cdn/upload'; loginPath='/pages/login/login'; -}else if(process.env.NODE_ENV === 'preview'){ +}else if(process.env.ENV_TYPE === 'preview'){ // 预发布环境,当前配置未使用上 context='/mobile-release'; apiBaseUrl = '/systemapi'; @@ -27,7 +27,7 @@ if(process.env.NODE_ENV === 'development'){ socialApiBaseUrl='/socialApi'; fileUrl = 'https://u.boe.com/upload'; loginPath='https://u.boe.com/m/preview'; -}else if(process.env.NODE_ENV === 'testing'){ +}else if(process.env.ENV_TYPE === 'testing'){ // 测试环境 apiBaseUrl = '/systemapi'; oldApiBaseUrl = '/uboeApi';