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' +}