更新详情
This commit is contained in:
@@ -75,8 +75,8 @@ async function request(options) {
|
||||
token: uni.cache.get('token'),
|
||||
openId: uni.cache.get('miniAppOpenId'),
|
||||
id: uni.cache.get('userInfo').id,
|
||||
loginName:"",
|
||||
clientType:''
|
||||
loginName: "",
|
||||
clientType: ''
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -95,12 +95,12 @@ async function request(options) {
|
||||
icon: "none",
|
||||
success: () => {
|
||||
setTimeout(res => {
|
||||
uni.cache.clear();
|
||||
uni.cache.set('token', '');
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
}, 1000)
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
} else if (res.code == 482) {
|
||||
@@ -117,7 +117,6 @@ async function request(options) {
|
||||
setTimeout(res => {
|
||||
if (options.toast) {
|
||||
// #ifdef MP-WEIXIN
|
||||
uni.hideLoading()
|
||||
// #endif
|
||||
// #ifndef MP-WEIXIN
|
||||
uni.pro.hideLoading()
|
||||
|
||||
Reference in New Issue
Block a user