Commit 1b0ea969aa998074f206a22e40fb9b954cbe5202

Authored by liuqimichale
1 parent 74b5bee2

正式环境

Showing 1 changed file with 2 additions and 2 deletions
src/api/httpRequest.js
@@ -6,7 +6,7 @@ const CancelToken = axios.CancelToken; @@ -6,7 +6,7 @@ const CancelToken = axios.CancelToken;
6 //请求拦截器 // 在发送请求之前做些什么 6 //请求拦截器 // 在发送请求之前做些什么
7 axios.interceptors.request.use(config => { 7 axios.interceptors.request.use(config => {
8 //发起请求时,取消掉当前正在进行的相同请求 8 //发起请求时,取消掉当前正在进行的相同请求
9 - config.headers['x-auth-token'] = '5a706458-5a67-4297-a009-30fb82a2fa45' 9 + config.headers['x-auth-token'] = '18de1300-c3f2-4365-9f51-62f77614f8c5'
10 // if(config.method === 'post') { 10 // if(config.method === 'post') {
11 // let data = qs.parse(config.data) 11 // let data = qs.parse(config.data)
12 // 12 //
@@ -84,7 +84,7 @@ axios.interceptors.response.use(response => { @@ -84,7 +84,7 @@ axios.interceptors.response.use(response => {
84 }) 84 })
85 //基础url前缀 85 //基础url前缀
86 //axios.defaults.baseURL = '/api' 86 //axios.defaults.baseURL = '/api'
87 -axios.defaults.baseURL = 'http://39.98.54.240:8093/'; 87 +axios.defaults.baseURL = 'http://bcp.service.renniting.cn/';
88 //设置默认请求头 88 //设置默认请求头
89 // axios.defaults.withCredentials=true;//让ajax携带cookie 89 // axios.defaults.withCredentials=true;//让ajax携带cookie
90 90