Merge pull request 'dev' (#6) from dev into main
Some checks failed
Some checks failed
Reviewed-on: #6
This commit is contained in:
commit
ba93f7db0b
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "MSR Mod",
|
"name": "MSR Mod",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "塞壬唱片(Monster Siren Records)官网的替代前端。",
|
"description": "塞壬唱片(Monster Siren Records)官网的替代前端。",
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
"storage"
|
"storage"
|
||||||
],
|
],
|
||||||
"content_security_policy": {
|
"content_security_policy": {
|
||||||
"extension_pages": "default-src 'self'; script-src 'self' http://localhost:5173; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://localhost:5173 https://monster-siren.hypergryph.com https://web.hycdn.cn; img-src 'self' https://web.hycdn.cn; media-src 'self' https://res01.hycdn.cn;",
|
"extension_pages": "default-src 'self'; script-src 'self' http://localhost:5173; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://localhost:5173 https://monster-siren.hypergryph.com https://web.hycdn.cn https://res01.hycdn.cn; img-src 'self' https://web.hycdn.cn; media-src 'self' https://res01.hycdn.cn;",
|
||||||
"sandbox": "sandbox"
|
"sandbox": "sandbox"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,14 +2,17 @@
|
||||||
import { artistsOrganize } from '../utils'
|
import { artistsOrganize } from '../utils'
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useFavourites } from '../stores/useFavourites'
|
import { useFavourites } from '../stores/useFavourites'
|
||||||
|
import apis from '../apis'
|
||||||
|
import axios from 'axios'
|
||||||
|
|
||||||
import StarSlashIcon from '../assets/icons/starslash.vue'
|
import StarSlashIcon from '../assets/icons/starslash.vue'
|
||||||
|
import { onMounted } from 'vue'
|
||||||
|
|
||||||
const favourites = useFavourites()
|
const favourites = useFavourites()
|
||||||
|
|
||||||
const hover = ref(false)
|
const hover = ref(false)
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
item: QueueItem
|
item: QueueItem
|
||||||
index: number
|
index: number
|
||||||
}>()
|
}>()
|
||||||
|
@ -17,6 +20,16 @@ defineProps<{
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
(e: 'play', index: number): void
|
(e: 'play', index: number): void
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
|
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
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user