This commit is contained in:
陆柯 2023-04-19 08:01:22 +08:00
parent 8f7bca3786
commit e246e34e78

View File

@ -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') {