Reset ALL data on logout
This commit is contained in:
parent
113f7a1579
commit
ae2c8d8e2e
1 changed files with 5 additions and 0 deletions
|
|
@ -159,6 +159,11 @@ export default {
|
||||||
|
|
||||||
localStorage.removeItem('user');
|
localStorage.removeItem('user');
|
||||||
this.$store.commit("setCurrentRoomId", null);
|
this.$store.commit("setCurrentRoomId", null);
|
||||||
|
this.rooms = [];
|
||||||
|
this.userDisplayName = null;
|
||||||
|
this.userAvatar = null;
|
||||||
|
this.currentRoom = null;
|
||||||
|
this.notificationCount = 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
initClient() {
|
initClient() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue