From f99eea7aa172f225a6d960e81f77dab84f6843f4 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 26 Oct 2020 11:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/utils/baseUrl.js diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js new file mode 100644 index 000000000..5c17a46dd --- /dev/null +++ b/src/utils/baseUrl.js @@ -0,0 +1,17 @@ +export function getBaseUrl() { + let BASE_API; + if (process.env.NODE_ENV === 'development') { + // BASE_API = 'https://joylink.club/jlcloud'; + BASE_API = 'https://test.joylink.club/jlcloud'; + // BASE_API = 'http://192.168.3.5:9000'; // 袁琪 + // BASE_API = 'http://192.168.3.169:9000'; // 旭强 + // BASE_API = 'http://192.168.3.175:9000'; // 张赛 + // BASE_API = 'http://192.168.3.82:9000'; // 杜康 + // BASE_API = 'http://b29z135112.zicp.vip'; + // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 + // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 + } else { + BASE_API = process.env.VUE_APP_BASE_API; + } + return BASE_API; +}