mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
use album hash to resolve album page
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user