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