Browse Source

四率超时问题

data-page-lingshan
是小王呀\24601 5 months ago
parent
commit
23902ce12b
  1. 1
      utils/request.js

1
utils/request.js

@ -8,6 +8,7 @@ const request = function (url, options) {
wx.request({ wx.request({
url: `${global.BASEURL()}${url}`, url: `${global.BASEURL()}${url}`,
method: options.method, method: options.method,
timeout: 120000, // 设置超时时间为 120 秒(120000 毫秒)
data: options.method === 'GET' ? options.data : JSON.stringify(options.data), data: options.method === 'GET' ? options.data : JSON.stringify(options.data),
header: { header: {
'Content-Type': 'application/json; charset=UTF-8', 'Content-Type': 'application/json; charset=UTF-8',

Loading…
Cancel
Save