src/pages/login.vue
@@ -162,6 +162,13 @@ }; function loginSuccess(result) { userStore.getInfo().then(res => { const userId = res.user.userId; // 登录成功后,将客户端推送标识发送到服务器 sendClientIdToServer(); // 启动定时获取未读消息数量的定时器 startNoticeCountTimer(userId); }) // 设置用户信息 userStore.getInfo().then(res => { uni.switchTab({