use album hash to resolve album page

This commit is contained in:
geoffrey45
2022-06-26 19:05:36 +03:00
parent 92ef22596b
commit 22ff52e86e
9 changed files with 36 additions and 48 deletions
+1 -4
View File
@@ -29,10 +29,7 @@ import { onBeforeRouteUpdate } from "vue-router";
const album = useAStore();
onBeforeRouteUpdate(async (to) => {
await album.fetchTracksAndArtists(
to.params.album.toString(),
to.params.artist.toString()
);
await album.fetchTracksAndArtists(to.params.hash.toString());
album.fetchBio(to.params.album.toString(), to.params.artist.toString());
});
</script>