|  |  |  | 
|---|
|  |  |  | axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8' | 
|---|
|  |  |  | const axiosInstance = axios.create({ | 
|---|
|  |  |  | baseURL: process.env.VUE_APP_API_PREFIX, | 
|---|
|  |  |  | // baseURL: process.env.VUE_APP_API, | 
|---|
|  |  |  | // 请求超时时间 | 
|---|
|  |  |  | timeout: 60000 | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | 
|---|
|  |  |  | // 设置操作平台 | 
|---|
|  |  |  | config.headers['eva-platform'] = `pc-${pkg.version}` | 
|---|
|  |  |  | // 设置认证头 | 
|---|
|  |  |  | const authToken = Cookies.get('eva-auth-token') | 
|---|
|  |  |  | const authToken = Cookies.get('doumee-auth-token') | 
|---|
|  |  |  | if (authToken != null) { | 
|---|
|  |  |  | config.headers['eva-auth-token'] = authToken | 
|---|
|  |  |  | config.headers['doumee-auth-token'] = authToken | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return config | 
|---|
|  |  |  | }, function (error) { | 
|---|