|
|
|
@ -186,7 +186,11 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) { |
|
|
|
// 基础接口地址
|
|
|
|
// baseURL: globSetting.apiUrl,
|
|
|
|
|
|
|
|
headers: { 'Content-Type': ContentTypeEnum.JSON }, |
|
|
|
headers: { |
|
|
|
'Content-Type': ContentTypeEnum.JSON, |
|
|
|
// 取消后端cookie重定向
|
|
|
|
'X-Request-From': 'vben', |
|
|
|
}, |
|
|
|
// 如果是form-data格式
|
|
|
|
// headers: { 'Content-Type': ContentTypeEnum.FORM_URLENCODED },
|
|
|
|
// 数据处理方式
|
|
|
|
|