From 5ff6ec8fa16734ccbcb882feb0e18787fbaab844 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 15 Jun 2022 14:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/config/index.js b/config/index.js index 16b021c..364e637 100644 --- a/config/index.js +++ b/config/index.js @@ -9,28 +9,29 @@ let fileUrl=''; let version=1; if(process.env.NODE_ENV === 'development'){ + //本地开发环境 apiBaseUrl = '/systemapi'; oldApiBaseUrl = '/uboeApi'; fileUrl = 'http://localhost:9090/cdn/upload'; loginPath='/pages/login/login'; }else if(process.env.NODE_ENV === 'preview'){ - // 生产环境 + // 预发布环境,当前配置未使用上 apiBaseUrl = '/systemapi'; oldApiBaseUrl = '/uboeApi'; - fileUrl = 'https://u-pre.boe.com/file/upload'; + fileUrl = 'https://u-pre.boe.com/upload'; loginPath='https://u-pre.boe.com/m/preview'; }else if(process.env.NODE_ENV === 'testing'){ - // 生产环境 + // 测试环境 apiBaseUrl = '/systemapi'; oldApiBaseUrl = '/uboeApi'; - fileUrl = 'https://u-pre.boe.com/file/upload'; + fileUrl = 'https://u-pre.boe.com/upload'; loginPath='https://u-pre.boe.com/m/testing'; }else{ // 生产环境 apiBaseUrl = '/systemapi'; oldApiBaseUrl = '/uboeApi'; - fileUrl = 'https://u.boe.com/file/upload'; - loginPath='https://u.boe.com/m/production'; + fileUrl = 'https://u.boe.com/upload'; + loginPath='https://u.boe.com/m/loginuser'; } export default {