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 () => { onMounted(async () => {
try { try {
await axios.get(props.item.song.sourceUrl ?? '', { await axios.head(props.item.song.sourceUrl ?? '')
headers: { } catch (error) {
'Range': 'bytes=0-0' //
} const updatedSong = await apis.getSong(props.item.song.cid)
}) console.log('Updated song:', updatedSong)
} catch (error) { } props.item.song.sourceUrl = updatedSong.sourceUrl
// }
const updatedSong = await apis.getSong(props.item.song.cid)
console.log('Updated song:', updatedSong)
props.item.song.sourceUrl = updatedSong.sourceUrl
}) })
</script> </script>