feat: 音乐库增加查看收藏的专辑/歌单/歌手功能

This commit is contained in:
qier222 2022-04-05 02:31:10 +08:00
parent bbd5299341
commit 2e41001d02
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
6 changed files with 203 additions and 44 deletions

View file

@ -0,0 +1,11 @@
import type { FetchUserArtistsResponse } from '@/api/user'
import { UserApiNames, fetchUserArtists } from '@/api/user'
export default function useUserArtists() {
return useQuery([UserApiNames.FETCH_USER_ARTIST], fetchUserArtists, {
placeholderData: (): FetchUserArtistsResponse =>
window.ipcRenderer?.sendSync('getApiCacheSync', {
api: 'album/sublist',
}),
})
}