演示项目-图书馆
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
500 B

/**
* 项目的一些定制化配置
*/
const isProd = process.env.NODE_ENV === 'production'
const proxyConfig = {
proxy: {
'url': "http://192.168.99.67:8080/frontDemoApi",
},
prodProxy: {
'url': 'https://rosefinchapi.aiyxlib.com/frontDemoApi'
}
}
export default {
// 代理配置,可支持多个代理,key为前缀,命中后,会把前缀去掉,转发到代理服务器
proxy: isProd ? proxyConfig.prodProxy.url : proxyConfig.proxy.url
}