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
+3 -6
View File
@@ -62,17 +62,14 @@ const routes = [
component: AlbumsExplorer,
},
{
path: "/albums/:album/:artist",
path: "/albums/:hash",
name: "AlbumView",
component: AlbumView,
beforeEnter: async (to) => {
state.loading.value = true;
await useAStore().fetchTracksAndArtists(
to.params.album,
to.params.artist
);
await useAStore().fetchTracksAndArtists(to.params.hash);
state.loading.value = false;
useAStore().fetchBio(to.params.album, to.params.artist);
useAStore().fetchBio(to.params.hash);
},
},
{