mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
use album hash to resolve album page
This commit is contained in:
+3
-6
@@ -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);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user