1
This commit is contained in:
@@ -38,7 +38,8 @@ async function request(options) {
|
||||
})
|
||||
}
|
||||
options.header = {
|
||||
// userId: uni.getStorageSync('userId'),
|
||||
userId: uni.getStorageSync('userId'),
|
||||
minitype:uni.getStorageSync('Type'),
|
||||
'content-type': 'application/json'
|
||||
}
|
||||
let res = await uni.pro.request(options)
|
||||
@@ -80,17 +81,17 @@ async function request(options) {
|
||||
}
|
||||
} else {
|
||||
if (!options.toast) {
|
||||
uni.showToast({
|
||||
title: res.message || res.msg,
|
||||
icon: "none",
|
||||
success() {
|
||||
setTimeout(res => {
|
||||
// if (options.toast) {
|
||||
uni.hideLoading()
|
||||
// }
|
||||
}, 2000)
|
||||
}
|
||||
})
|
||||
// uni.showToast({
|
||||
// title: res.message || res.msg,
|
||||
// icon: "none",
|
||||
// success() {
|
||||
// setTimeout(res => {
|
||||
// // if (options.toast) {
|
||||
// uni.hideLoading()
|
||||
// // }
|
||||
// }, 2000)
|
||||
// }
|
||||
// })
|
||||
}
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user