Browse Source

登录后从新加载就请求一次用户状态

master
liaoxinyu 2 years ago
parent
commit
b7c3a51759
  1. 4
      App.vue

4
App.vue

@ -171,6 +171,10 @@ export default {
mounted() { mounted() {
// //
document.addEventListener('visibilitychange', this.handleVisibilityChange); document.addEventListener('visibilitychange', this.handleVisibilityChange);
//
if (this.isLogin){
this.sendHeartbeat()
}
// //
this.startHeartbeat(); this.startHeartbeat();
}, },

Loading…
Cancel
Save