diff --git a/public/manifest.json b/public/manifest.json index 3e62342..598bdc4 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "MSR Mod", - "version": "0.0.2", + "version": "0.0.3", "description": "塞壬唱片(Monster Siren Records)官网的替代前端。", "content_scripts": [ { diff --git a/src/components/PlayListItem.vue b/src/components/PlayListItem.vue index b29222d..cf2ba42 100644 --- a/src/components/PlayListItem.vue +++ b/src/components/PlayListItem.vue @@ -23,12 +23,13 @@ const emit = defineEmits<{ onMounted(async () => { try { - await axios.get(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 + 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 + } })