Now going back to the same page

This commit is contained in:
Pünkösd Marcell 2020-11-26 23:18:13 +01:00
parent 04cd9e1f92
commit 287bcd5135
2 changed files with 13 additions and 2 deletions

View File

@ -73,7 +73,18 @@ export default {
}, },
methods: { methods: {
rowClicked(data) { rowClicked(data) {
this.$router.push({name: 'Item', params: {id: data.id}, query: {collection: this.$route.params.id}}); this.$router.push(
{
name: 'Item',
params: {
id: data.id
},
query: {
collection: this.$route.params.id,
srcpage: this.$route.query.p
}
}
);
}, },
startPlayer(spotify_id) { startPlayer(spotify_id) {
this.$store.dispatch('openPlayer', spotify_id); this.$store.dispatch('openPlayer', spotify_id);

View File

@ -3,7 +3,7 @@
<b-row> <b-row>
<b-col> <b-col>
<h1> <h1>
<b-button variant="transparent" class="m-1" :to="{name: 'Collection', params: {id: $route.query.collection}}"> <b-button variant="transparent" class="m-1" :to="{name: 'Collection', params: {id: $route.query.collection}, query: {p: $route.query.srcpage}}">
<b-icon icon="arrow-left-circle-fill"/> <b-icon icon="arrow-left-circle-fill"/>
</b-button> </b-button>
{{ songInfo.type | capitalize }} {{ songInfo.type | capitalize }}