fix: add headers to axios request for range retrieval in PlayListItem.vue
Some checks failed
构建扩展程序 / 构建 Chrome 扩展程序 (push) Has been cancelled
构建扩展程序 / 构建 Firefox 附加组件 (push) Has been cancelled
构建扩展程序 / 发布至 Chrome 应用商店 (push) Has been cancelled
构建扩展程序 / 发布至 Firefox 附加组件库 (push) Has been skipped
构建扩展程序 / 发布至 Edge 附加组件商店 (push) Has been skipped

This commit is contained in:
Astrian Zheng 2025-05-29 15:54:43 +10:00
parent 8f06e024e9
commit a85a092e5c
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA

View File

@ -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)