dev #7

Merged
Astrian merged 3 commits from dev into main 2025-05-29 05:58:10 +00:00
Showing only changes of commit 9e4b53b1e7 - Show all commits

View File

@ -23,16 +23,13 @@ const emit = defineEmits<{
onMounted(async () => {
try {
await axios.get(props.item.song.sourceUrl ?? '', {
headers: {
'Range': 'bytes=0-0'
}
})
} catch (error) { }
await axios.head(props.item.song.sourceUrl ?? '')
} catch (error) {
//
const updatedSong = await apis.getSong(props.item.song.cid)
console.log('Updated song:', updatedSong)
props.item.song.sourceUrl = updatedSong.sourceUrl
}
})
</script>