resizing images ondemand

This commit is contained in:
ju09279
2024-08-16 00:28:14 +02:00
parent c3c4de3c44
commit b4ac10c006
9 changed files with 119 additions and 69 deletions

View File

@@ -17,7 +17,7 @@ const name = ref('name');
onMounted(async () => {
const data = await userStore.fetchCollection(Number(route.params.id));
console.log(data)
data.songs.forEach(song => {
song.previewimage = `${userStore.baseUrl}api/v1/images/${song.previewimage}`;
song.url = `${userStore.baseUrl}api/v1/audio/${song.url}`;
@@ -47,10 +47,6 @@ onMounted(async () => {
<div class="flex-1 flex-col h-full overflow-scroll">
<SongItem
v-for="(song, index) in songs"
:key="index"
:song="song"
/>
<SongItem v-for="(song, index) in songs" :key="index" :song="song" />
</div>
</template>