Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
do not refresh the entire component when just an hash change, so key …
Browse files Browse the repository at this point in the history
…should be based on name instead of path
  • Loading branch information
Alaanor committed Jun 6, 2020
1 parent a021729 commit 3d55cea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/playlists/Playlists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-container>
<transition name="slide-x-transition" mode="out-in">
<keep-alive>
<router-view :key="$route.path" />
<router-view :key="$route.name" />
</keep-alive>
</transition>
</v-container>
Expand All @@ -13,5 +13,8 @@ import Vue from "vue";
export default Vue.extend({
name: "Playlists",
mounted() {
console.log(this.$route);
},
});
</script>

0 comments on commit 3d55cea

Please sign in to comment.