continue cache works
This commit is contained in:
parent
1f2ee957e8
commit
e660a7bba7
@ -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) => {
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user