mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: updates
This commit is contained in:
parent
884f3df41a
commit
c6c59b2cd9
84 changed files with 3531 additions and 2616 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import axios from 'axios'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { appName } from '../utils/const'
|
||||
|
||||
export default function useVideoCover(props: {
|
||||
id?: number
|
||||
|
|
@ -13,9 +14,12 @@ export default function useVideoCover(props: {
|
|||
async () => {
|
||||
if (!id || !name || !artist) return
|
||||
|
||||
const fromRemote = await axios.get('/yesplaymusic/video-cover', {
|
||||
params: props,
|
||||
})
|
||||
const fromRemote = await axios.get(
|
||||
`/${appName.toLowerCase()}/video-cover`,
|
||||
{
|
||||
params: props,
|
||||
}
|
||||
)
|
||||
if (fromRemote?.data?.url) {
|
||||
return fromRemote.data.url
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue