Compare commits

..

No commits in common. '8e2a11c4c56d52ea2d6d3a86a0114d06e8482be5' and 'e9fc8fd386c3d0fcc1b16fc43df1016831d374e6' have entirely different histories.

@ -1,5 +1,5 @@
'use strict' 'use strict'
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
BASE_API: '"http://web.lbschem.com:8088/index.php/"', BASE_API: '"http://company6.dxbs.vip/index.php/"',
} }

@ -49,11 +49,11 @@ if (window.location.href.indexOf('index.html') != -1) {
} else { } else {
hrefs = window.location.href.split('#') hrefs = window.location.href.split('#')
} }
// const baseURL = hrefs.length > 0 ? hrefs[0] : window.location.href const baseURL = hrefs.length > 0 ? hrefs[0] : window.location.href
// baseURL + 'index.php/' 默认请求地址 // baseURL + 'index.php/' 默认请求地址
// process.env.BASE_API 自定义请求地址 // process.env.BASE_API 自定义请求地址
window.BASE_URL = process.env.BASE_API window.BASE_URL = process.env.NODE_ENV === 'production' ? baseURL + 'index.php/' : process.env.BASE_API
const service = axios.create({ const service = axios.create({
baseURL: window.BASE_URL, // api 的 base_url baseURL: window.BASE_URL, // api 的 base_url

Loading…
Cancel
Save