'设置超时间'

main
JayChou 4 months ago
parent e26c7e026c
commit 04aec1977e
  1. 2
      jeecgboot-vue3-master/src/utils/http/axios/index.ts

@ -235,7 +235,7 @@ function createAxios(opt?: Partial<CreateAxiosOptions>) {
// authentication schemes,e.g: Bearer // authentication schemes,e.g: Bearer
// authenticationScheme: 'Bearer', // authenticationScheme: 'Bearer',
authenticationScheme: '', authenticationScheme: '',
timeout: 10 * 1000, timeout: 20 * 1000,
// 基础接口地址 // 基础接口地址
// baseURL: globSetting.apiUrl, // baseURL: globSetting.apiUrl,
headers: { 'Content-Type': ContentTypeEnum.JSON }, headers: { 'Content-Type': ContentTypeEnum.JSON },

Loading…
Cancel
Save