mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: 支持缓存歌词和一些小更新
This commit is contained in:
parent
abedbe7531
commit
1eb38937fc
11 changed files with 44 additions and 18 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue