Merge pull request 'dev' (#7) from dev into main
Some checks failed
构建扩展程序 / 构建 Chrome 扩展程序 (push) Successful in 55s
构建扩展程序 / 构建 Firefox 附加组件 (push) Successful in 59s
构建扩展程序 / 发布至 Chrome 应用商店 (push) Successful in 34s
构建扩展程序 / 发布至 Edge 附加组件商店 (push) Failing after 48s
构建扩展程序 / 发布至 Firefox 附加组件库 (push) Failing after 16m4s

Reviewed-on: #7
This commit is contained in:
Astrian 2025-05-29 05:58:05 +00:00
commit aaf58f03e1
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>