This commit is contained in:
wzz
2024-08-05 09:14:33 +08:00
parent 8e9e460cb3
commit 1dd22ddb54

View File

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