|
@@ -244,9 +244,23 @@ export default {
|
|
|
if (this.user.passwordWeak) {
|
|
|
this.passWeakDialog = true;
|
|
|
}
|
|
|
+ this.onlineSignal();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions([USER_SIGNOUT, USER_SIGNIN]),
|
|
|
+ async onlineSignal() {
|
|
|
+ try {
|
|
|
+ this.$httpWithoutBar
|
|
|
+ .post(QUESTION_API + "/user/online/signal")
|
|
|
+ .then(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.onlineSignal();
|
|
|
+ }, 3000);
|
|
|
+ });
|
|
|
+ } catch (error) {
|
|
|
+ console.log("tag", error);
|
|
|
+ }
|
|
|
+ },
|
|
|
openMessageHome() {
|
|
|
this.$router.push({ path: "/home/site-message" });
|
|
|
},
|