feat: 支持缓存歌词和一些小更新

This commit is contained in:
qier222 2022-04-05 23:02:59 +08:00
parent abedbe7531
commit 1eb38937fc
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
11 changed files with 44 additions and 18 deletions

View file

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