mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: bugs
fix: bugs
This commit is contained in:
parent
1444bbefa2
commit
70d1de0e0f
62 changed files with 368 additions and 284 deletions
|
|
@ -1,9 +1,10 @@
|
|||
import { fetchArtistAlbums } from '@/api/artist'
|
||||
import { ArtistApiNames } from '@/api/artist'
|
||||
import { fetchArtistAlbums } from '@/renderer/api/artist'
|
||||
import { ArtistApiNames } from '@/renderer/api/artist'
|
||||
import type {
|
||||
FetchArtistAlbumsParams,
|
||||
FetchArtistAlbumsResponse,
|
||||
} from '@/api/artist'
|
||||
} from '@/renderer/api/artist'
|
||||
import { IpcChannels } from '@/main/IpcChannelsName'
|
||||
|
||||
export default function useUserAlbums(params: FetchArtistAlbumsParams) {
|
||||
return useQuery(
|
||||
|
|
@ -16,7 +17,7 @@ export default function useUserAlbums(params: FetchArtistAlbumsParams) {
|
|||
enabled: !!params.id && params.id !== 0,
|
||||
staleTime: 3600000,
|
||||
placeholderData: (): FetchArtistAlbumsResponse =>
|
||||
window.ipcRenderer?.sendSync('getApiCacheSync', {
|
||||
window.ipcRenderer?.sendSync(IpcChannels.GetApiCacheSync, {
|
||||
api: 'artist/album',
|
||||
query: {
|
||||
id: params.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue