From 7e36cd5c04a09773a7afb86dbd7bd561ab3e88a4 Mon Sep 17 00:00:00 2001 From: Roman Cervantes Date: Wed, 22 Jan 2020 10:03:22 -0700 Subject: [PATCH] Fix routing issue on first login --- src/pages/GameBoard.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/GameBoard.vue b/src/pages/GameBoard.vue index 4beb1e24..94c6aa42 100755 --- a/src/pages/GameBoard.vue +++ b/src/pages/GameBoard.vue @@ -63,7 +63,11 @@ export default { }, mounted() { - this.load(); + if (this.platform) { + this.load(); + } else { + this.$router.push({ name: 'platforms' }); + } }, methods: {