From 07fae6b200ff7001c9eeef231b928fe0a6d6206c Mon Sep 17 00:00:00 2001 From: unknown <李伟龙> Date: 星期二, 05 一月 2021 13:41:43 +0800 Subject: [PATCH] 配置 添加打包环境 --- src/config/baseConfig.js | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/config/baseConfig.js b/src/config/baseConfig.js index fc4eb5c..d27a604 100644 --- a/src/config/baseConfig.js +++ b/src/config/baseConfig.js @@ -1,4 +1,4 @@ -var baseUrl = '/' // 鍩虹璺緞 +var baseUrl = '//绾夸笂璇锋眰璺緞/' // 鍩虹璺緞 var testBaseUrl = 'http://192.168.31.22:8080/' // 寮�鍙戞祴璇曡矾寰� // var testBaseUrl = 'http://192.168.1.163:8080/'; // 寮�鍙戞祴璇曡矾寰� // var testBaseUrl = 'http://192.168.31.143:8080/' // 寮�鍙戞祴璇曡矾寰� - 鍜� @@ -7,10 +7,14 @@ var isTest = 0 // 鏄惁娴嬭瘯 var isMock = 1 // 鏄惁浣跨敤mock -// if (process.env.NODE_ENV !== 'development') { -// testBaseUrl = '/'; -// isCrossDomain = 0; -// } +// 鎵撳寘鍚庣殑鐜 +if (process.env.NODE_ENV !== 'development') { + testBaseUrl = '/'; + isCrossDomain = 0; + isTest = 0 + isMock = 0 +} + // 绾夸笂璺ㄥ煙 var cdBaseUrl = { name: '/api_online/', -- Gitblit v1.8.0