Add an event listener for GameRejoined.
This commit is contained in:
parent
3abec8ccda
commit
01ea91e856
1 changed files with 7 additions and 0 deletions
|
|
@ -96,6 +96,13 @@ export default {
|
||||||
});
|
});
|
||||||
this.$store.commit(`view`, `lobby`);
|
this.$store.commit(`view`, `lobby`);
|
||||||
},
|
},
|
||||||
|
GameRejoined(data) {
|
||||||
|
if (!(200 <= data.status && data.status < 300)) {
|
||||||
|
this.$emit(`error`, data);
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
// TODO -> Update all data that is received from the server
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue