Merge pull request 'dev' (#7) from dev into main
Some checks failed
Some checks failed
Reviewed-on: #7
This commit is contained in:
commit
aaf58f03e1
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 3,
|
||||
"name": "MSR Mod",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "塞壬唱片(Monster Siren Records)官网的替代前端。",
|
||||
"content_scripts": [
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user