1
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user