接口节流优化
This commit is contained in:
@@ -40,7 +40,7 @@ export default (options = {}) => {
|
||||
if (arr.indexOf(options.url) > -1) {
|
||||
setTimeout(() => {
|
||||
arr.splice(arr.indexOf(options.url), 1)
|
||||
}, 300)
|
||||
}, 1500)
|
||||
}
|
||||
if (res.data.resultCode !== 10000 && res.data.code !== 'A0000') {
|
||||
errHandler(res.data)
|
||||
@@ -53,7 +53,7 @@ export default (options = {}) => {
|
||||
if (arr.indexOf(options.url) > -1) {
|
||||
setTimeout(() => {
|
||||
arr.splice(arr.indexOf(options.url), 1)
|
||||
}, 300)
|
||||
}, 1500)
|
||||
}
|
||||
reject(err)
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user