fix: add headers to axios request for range retrieval in PlayListItem.vue
Some checks failed
Some checks failed
This commit is contained in:
parent
8f06e024e9
commit
a85a092e5c
|
@ -23,7 +23,11 @@ const emit = defineEmits<{
|
|||
|
||||
onMounted(async () => {
|
||||
try {
|
||||
await axios.get(props.item.song.sourceUrl ?? '')
|
||||
await axios.get(props.item.song.sourceUrl ?? '', {
|
||||
headers: {
|
||||
'Range': 'bytes=0-0'
|
||||
}
|
||||
})
|
||||
} catch (error) { }
|
||||
// 刷新资源地址
|
||||
const updatedSong = await apis.getSong(props.item.song.cid)
|
||||
|
|
Loading…
Reference in New Issue
Block a user