fix incorrect album fetching

This commit is contained in:
geoffrey45
2021-12-28 10:08:31 +03:00
parent 49947a22b2
commit c49e1e48f1
7 changed files with 28 additions and 13 deletions
+2 -1
View File
@@ -40,11 +40,12 @@ export default {
setup() {
const route = useRoute();
const album_name = route.params.album;
const album_artists = route.params.artist;
const album_songs = ref([]);
const album_info = ref({});
onMounted(() => {
getAlbum(album_name).then((data) => {
getAlbum(album_name, album_artists).then((data) => {
album_songs.value = data.songs;
album_info.value = data.info;
});