app/pages/login.vue @@ -125,6 +125,8 @@ loginSuccess(result) { // 设置用户信息 this.$store.dispatch('GetInfo').then(res => { // 触发登录成功事件,启动消息轮询 uni.$emit('user-login') this.$tab.reLaunch('/pages/index') }) }