|
@@ -164,10 +164,8 @@ export const $http = (url, method, data, json, loadingBool = false, isExecute =
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- var i = 0
|
|
|
|
var digui = function () {
|
|
var digui = function () {
|
|
- i++
|
|
|
|
- if ((store?.getters?.token && store?.getters?.userId) || i == 600) {
|
|
|
|
|
|
+ if (store?.getters?.token && store?.getters?.userId) {
|
|
http
|
|
http
|
|
.request({
|
|
.request({
|
|
method: method,
|
|
method: method,
|
|
@@ -181,7 +179,7 @@ export const $http = (url, method, data, json, loadingBool = false, isExecute =
|
|
.then(resolve)
|
|
.then(resolve)
|
|
.catch(reject)
|
|
.catch(reject)
|
|
} else {
|
|
} else {
|
|
- setTimeout(digui, 50)
|
|
|
|
|
|
+ setTimeout(digui, 100)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
digui()
|
|
digui()
|