From e246e34e7840e5cebae6d242a76aa21cc8ebca70 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Wed, 19 Apr 2023 08:01:22 +0800 Subject: [PATCH] u --- unitool.js | 2 ++ 1 file changed, 2 insertions(+) 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') {