Commit 97c6c36c authored by zhuxl's avatar zhuxl

提交

parent 7940e3a9
......@@ -14,6 +14,10 @@ const service = axios.create({
service.interceptors.request.use(
config => {
config['url']=encodeURI(config['url'])//解决中文乱码问题
console.log('configggg',config['url'])
if((window.location.href).includes('bidweb')){
config['url'] = (config['url']).replace("bidprocurement","service-app")
}
config.headers['Content-Type'] = 'application/json;charset=UTF-8'//请求类型
if (config.accessToken||getToken()) {
config.headers['X-AUTH-TOKEN'] = config.accessToken||getToken()//token
......@@ -67,4 +71,4 @@ service.interceptors.response.use(
}
);
export default service;
\ No newline at end of file
export default service;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment