接口节流优化

This commit is contained in:
仲么了
2023-08-31 16:14:15 +08:00
parent 14c7eb5bb1
commit fb5de4370b
4 changed files with 20 additions and 11 deletions

View File

@@ -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({