From 8a1a8689a2d7e236a733ffb822da503d16fcb88e Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期一, 10 七月 2023 08:45:49 +0800 Subject: [PATCH] websocket增加重连 --- pages/tabbar-page/index-tabbar/index-tabbar.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue index 7fe7a38..f99df1d 100644 --- a/pages/tabbar-page/index-tabbar/index-tabbar.vue +++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue @@ -171,11 +171,11 @@ }, onShow() { this.init(); - console.log(this.globalisconnect); if (this.globalisconnect) { this.$store.dispatch('websocketInit') this.changeisconnect(false) - console.log(this.globalisconnect, 'index鐨剋s蹇冧簨鈥�'); + this.$store.commit('changeisLogin', true) + console.log(this.globalisconnect, 'index鐨剋s鏁版嵁'); } this.userAuthorization(); this.messageReq(); -- Gitblit v1.9.1