dev #7

Merged
Astrian merged 3 commits from dev into main 2025-05-29 05:58:10 +00:00
2 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "MSR Mod",
"version": "0.0.2",
"version": "0.0.3",
"description": "塞壬唱片Monster Siren Records官网的替代前端。",
"content_scripts": [
{

View File

@ -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
}
})
</script>