diff --git a/unitool.js b/unitool.js index b549def..73c65e6 100644 --- a/unitool.js +++ b/unitool.js @@ -150,6 +150,7 @@ export default { apiWho, apiTodo, apiWhat = {}, + timeout, }) { const thisRoute = this.thisPage()?.route || 'VueApp' // 立刻保存 this.thisPage().route,因为在调用后台后,可能已切换到了其他页面。 const startTime = new Date().toJSON() @@ -196,6 +197,7 @@ export default { method: httpMethod, url: url, data: { ...apiWhat, _passtoken: uni.getStorageSync('_passtoken') }, + timeout, }) if (error) { if (error.errMsg === 'request:fail') {