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 = { options.header = {
// userId: uni.getStorageSync('userId'), userId: uni.getStorageSync('userId'),
minitype:uni.getStorageSync('Type'),
'content-type': 'application/json' 'content-type': 'application/json'
} }
let res = await uni.pro.request(options) let res = await uni.pro.request(options)
@@ -80,17 +81,17 @@ async function request(options) {
} }
} else { } else {
if (!options.toast) { if (!options.toast) {
uni.showToast({ // uni.showToast({
title: res.message || res.msg, // title: res.message || res.msg,
icon: "none", // icon: "none",
success() { // success() {
setTimeout(res => { // setTimeout(res => {
// if (options.toast) { // // if (options.toast) {
uni.hideLoading() // uni.hideLoading()
// } // // }
}, 2000) // }, 2000)
} // }
}) // })
} }
return res return res