bug
This commit is contained in:
@@ -43,6 +43,7 @@ const request = (params) => {
|
||||
// }
|
||||
})
|
||||
.then(res => { // 成功
|
||||
uni.hideLoading()
|
||||
if (res.length === 1) {
|
||||
uni.showModal({
|
||||
content: 'request:fail',
|
||||
@@ -113,6 +114,7 @@ const request = (params) => {
|
||||
}
|
||||
})
|
||||
.catch(err => { // 错误
|
||||
uni.hideLoading()
|
||||
reject(err)
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user