This commit is contained in:
2024-03-19 10:07:38 +08:00
parent 455d1b96e2
commit fd049136f2
4 changed files with 21 additions and 11 deletions

View File

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