Browse Source

延长请求时间

master
453530270@qq.com 3 years ago
parent
commit
c7481a36be
  1. 2
      utils/request/index.js

2
utils/request/index.js

@ -21,7 +21,7 @@ const $http = new request({
'Content-Type': 'application/json;charset=UTF-8' 'Content-Type': 'application/json;charset=UTF-8'
}, },
// 请求超时时间, 单位ms(默认15000) // 请求超时时间, 单位ms(默认15000)
timeout: 15000, timeout: 60000,
// 默认配置(可不写) // 默认配置(可不写)
config: { config: {
// 是否自动提示错误 // 是否自动提示错误

Loading…
Cancel
Save