u
This commit is contained in:
parent
8f7bca3786
commit
e246e34e78
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user