优化
This commit is contained in:
@@ -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('用户点击取消')
|
||||
|
||||
Reference in New Issue
Block a user