mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
chore: 用esbuild代替vite来打包main
This commit is contained in:
parent
b4590c3c34
commit
c4219afd3d
152 changed files with 669 additions and 747 deletions
12
src/renderer/hooks/useUser.ts
Normal file
12
src/renderer/hooks/useUser.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { fetchUserAccount, fetchUserAccountResponse } from '@/api/user'
|
||||
import { UserApiNames } from '@/api/user'
|
||||
|
||||
export default function useUser() {
|
||||
return useQuery(UserApiNames.FETCH_USER_ACCOUNT, fetchUserAccount, {
|
||||
refetchOnWindowFocus: true,
|
||||
// placeholderData: (): fetchUserAccountResponse | undefined =>
|
||||
// window.ipcRenderer.sendSync('getApiCacheSync', {
|
||||
// api: 'user/account',
|
||||
// }),
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue