/** * 设置api请求的baseURL */ let configs = { // 请求协议 protocol : 'http', // 请求域名 host: 'api.lch.3ncto.com.cn', // 基础路径 basePath: '/api2.php' } export default { baseURL: configs.protocol + '://' + configs.host + configs.basePath, // baseURL: '', isDev: false }