@@ -70,8 +70,10 @@ Component({
})
downCount = setTimeout(() => {
_Http.logout().then(res => {
+ getApp().globalData.SocketTask.close()
wx.showToast({
- title: '退出成功'
+ title: '退出成功',
+ mask:true
});
let loginMsg = wx.getStorageSync("loginMsg");
wx.clearStorageSync();
@@ -74,7 +74,7 @@ function toHome() {
wx.reLaunch({
url: '/pages/index/index'
- if (!getApp().globalData.socketEstablish) getApp().initSocket();
+ getApp().initSocket();
}
/* 站点数据查询 */
module.exports = {