This commit is contained in:
haomingming
2023-03-31 13:48:32 +08:00
parent edff2d3c05
commit 52742fdbd9
16 changed files with 148 additions and 60 deletions
+8 -6
View File
@@ -54,12 +54,14 @@ Page({
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
wx.setStorageSync('user_id_'+usertype, "");
wx.setStorageSync('client_user_id_'+usertype, "");
let promise = wx.$TUIKit.logout();
promise.then(function(imResponse) {
console.log(imResponse.data); // 登出成功
}).catch(function(imError) {
console.warn('logout error:', imError);
});
if(wx.$TUIKit){
let promise = wx.$TUIKit.logout();
promise.then(function(imResponse) {
console.log(imResponse.data); // 登出成功
}).catch(function(imError) {
console.warn('logout error:', imError);
});
}
app.go("/Pages/index/index");
} else if (res.cancel) {
console.log('用户点击取消')