Commit aeada657 by 施宇

111

parent 19857c75
Showing with 4 additions and 3 deletions
...@@ -26,7 +26,7 @@ Page({ ...@@ -26,7 +26,7 @@ Page({
}); });
} }
if (getApp().globalData.imBoolean) { if (getApp().globalData.imBoolean) {
reloginIm() reloginIm(true)
} }
}, },
......
...@@ -198,11 +198,12 @@ const webimListen = () => { ...@@ -198,11 +198,12 @@ const webimListen = () => {
let pages = getCurrentPages(); let pages = getCurrentPages();
let curPage = pages[pages.length - 1]; let curPage = pages[pages.length - 1];
getApp().globalData.imBoolean = true; getApp().globalData.imBoolean = true;
wx.setStorageSync('is_ShowModal', true);
if (curPage.route == 'pages/tab/message/message') { if (curPage.route == 'pages/tab/message/message') {
reloginIm(true) reloginIm(true)
} else if (curPage.route == "pages/detail/chat/index"){ } else if (curPage.route == "pages/detail/chat/index"){
reloginIm() reloginIm(true)
}else{
wx.setStorageSync('is_ShowModal', true);
} }
} else if (error.type == 1) { //用户名或者账号错误 } else if (error.type == 1) { //用户名或者账号错误
if (getApp().globalData.isRelogin) { if (getApp().globalData.isRelogin) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment