mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: 实现私人FM (#1453)
* feat: 实现私人FM * 根据建议修改 * fix: APP启动时FMCard无法加载数据 * fix: coverUrl使用useMemo * fix: 在私人FM模式下禁用单曲循环 * fix: 私人FM模式下禁用部分按钮 * fix: 限制FMCard的歌手长度 * fix: 移除ArtistsInline的clamp参数,并将其作为隐式Fallback
This commit is contained in:
parent
e99c4833f7
commit
719a3a60d4
6 changed files with 351 additions and 40 deletions
14
src/renderer/hooks/usePersonalFM.ts
Normal file
14
src/renderer/hooks/usePersonalFM.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { fetchPersonalFM, PersonalFMApiNames } from '@/api/personalFM'
|
||||
import reactQueryClient from '@/utils/reactQueryClient'
|
||||
|
||||
export function fetchPersonalFMWithReactQuery() {
|
||||
return reactQueryClient.fetchQuery(
|
||||
PersonalFMApiNames.FETCH_PERSONAL_FM,
|
||||
() => {
|
||||
return fetchPersonalFM()
|
||||
},
|
||||
{
|
||||
retry: 3,
|
||||
}
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue