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,11 +1,12 @@
|
|||
import { fetchUserAccount, fetchUserAccountResponse } from '@/api/user'
|
||||
import { UserApiNames } from '@/api/user'
|
||||
import { fetchUserAccount, fetchUserAccountResponse } from '@/renderer/api/user'
|
||||
import { UserApiNames } from '@/renderer/api/user'
|
||||
import { IpcChannels } from '@/main/IpcChannelsName'
|
||||
|
||||
export default function useUser() {
|
||||
return useQuery(UserApiNames.FETCH_USER_ACCOUNT, fetchUserAccount, {
|
||||
refetchOnWindowFocus: true,
|
||||
placeholderData: (): fetchUserAccountResponse | undefined =>
|
||||
window.ipcRenderer?.sendSync('getApiCacheSync', {
|
||||
window.ipcRenderer?.sendSync(IpcChannels.GetApiCacheSync, {
|
||||
api: 'user/account',
|
||||
}),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue