This commit is contained in:
haomingming
2023-04-11 18:41:46 +08:00
parent 3f40c4c237
commit 4f14aad6f3
53 changed files with 657 additions and 205 deletions
+1 -10
View File
@@ -54,16 +54,7 @@ Page({
wx.setStorageSync('AUTH_TOKEN_'+usertype, "");
wx.setStorageSync('user_id_'+usertype, "");
wx.setStorageSync('client_user_id_'+usertype, "");
if(wx.$TUIKit){
let promise = wx.$TUIKit.logout();
wx.$TUIKit = undefined;
promise.then(function(imResponse) {
console.log(imResponse.data); // 登出成功
}).catch(function(imError) {
console.warn('logout error:', imError);
});
}
app.clearAllInterval()
app.imLogout();
app.go("/Pages/index/index");
} else if (res.cancel) {
console.log('用户点击取消')