diff --git a/frontend/src/pages/MyCaches.vue b/frontend/src/pages/MyCaches.vue index aa82501..0327872 100644 --- a/frontend/src/pages/MyCaches.vue +++ b/frontend/src/pages/MyCaches.vue @@ -271,15 +271,17 @@ }) }, continueCache(cacheID) { - console.log("cacheID") - console.log(cacheID) - let currentCache; + console.log("cacheID"); + console.log(cacheID); + let currentStationID; if (localStorage.getItem('userToken')) { let params = {cacheID: cacheID}; params.token = JSON.parse(localStorage.getItem('userToken')).token; this.$axios.get('/api/getCurrentStation', {params}) .then((response) => { - console.log(response.data) + console.log(response.data); + currentStationID = response.data.aktuelleStation.id; + this.$router.push({path: `/station/${cacheID}/${currentStationID}`}); }) .catch((error) => { });