From 62932b94e7b8da782c46a93bd2a4e4323ea863df Mon Sep 17 00:00:00 2001 From: Soenke Date: Sun, 14 Sep 2025 04:31:39 +0200 Subject: [PATCH] fix: rout when creating game --- .../src/pages/game/createLocalGamePage.vue | 165 +++++++++++++++++- .../src/pages/game/gameModeSelectPage.vue | 9 + 2 files changed, 172 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/game/createLocalGamePage.vue b/frontend/src/pages/game/createLocalGamePage.vue index a17c1f9..5496d7e 100644 --- a/frontend/src/pages/game/createLocalGamePage.vue +++ b/frontend/src/pages/game/createLocalGamePage.vue @@ -1,7 +1,168 @@ diff --git a/frontend/src/pages/game/gameModeSelectPage.vue b/frontend/src/pages/game/gameModeSelectPage.vue index 0bcc2c6..e997f4f 100644 --- a/frontend/src/pages/game/gameModeSelectPage.vue +++ b/frontend/src/pages/game/gameModeSelectPage.vue @@ -73,6 +73,15 @@ async function CreateGame(is_local) { .then(function (response) { console.log(response) + + LocalStorage.setItem("gameID", response.data.game.id) + + if (is_local) { + router.push("/game/local/create") + } else { + router.push("/game/online/create") + } + $q.notify({ type: "positive", message: `Success!`,