From 3a72cc5bc4b9c1651d54338e6d414a59e528228a Mon Sep 17 00:00:00 2001 From: luobz Date: Mon, 30 Mar 2020 17:00:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4configs.js=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - src/configs.js | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/configs.js diff --git a/.gitignore b/.gitignore index 2fc6352..ad1dfe2 100644 --- a/.gitignore +++ b/.gitignore @@ -35,5 +35,4 @@ out node_modules/ dist -configs.js package-lock.json diff --git a/src/configs.js b/src/configs.js new file mode 100644 index 0000000..a86dbf4 --- /dev/null +++ b/src/configs.js @@ -0,0 +1,21 @@ +/** + * 设置api请求的baseURL + */ + +let configs = { + // 请求协议 + protocol : 'http', + // 请求域名 + host: 'www.yihaojiazheng.cn', + // 基础路径 + basePath: '' +} + + +export default { + baseURL: configs.protocol + '://' + configs.host + configs.basePath, + // baseURL: '', + isDev: false, + + locationUrl: 'http://www.yihaojiazheng.cn' +}