mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 21:58:03 +00:00
feat: 使用sqlite3替换realm
This commit is contained in:
parent
c4219afd3d
commit
1b86cbbee1
20 changed files with 292 additions and 691 deletions
|
|
@ -17,8 +17,10 @@ export default function Home() {
|
|||
return fetchRecommendedPlaylists({})
|
||||
},
|
||||
{
|
||||
// placeholderData: () =>
|
||||
// window.ipcRenderer.sendSync('getApiCacheSync', { api: 'personalized' }),
|
||||
placeholderData: () =>
|
||||
window.ipcRenderer?.sendSync('getApiCacheSync', {
|
||||
api: 'personalized',
|
||||
}),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
@ -27,7 +29,13 @@ export default function Home() {
|
|||
isLoading: isLoadingDailyRecommendPlaylists,
|
||||
} = useQuery(
|
||||
PlaylistApiNames.FETCH_DAILY_RECOMMEND_PLAYLISTS,
|
||||
fetchDailyRecommendPlaylists
|
||||
fetchDailyRecommendPlaylists,
|
||||
{
|
||||
placeholderData: () =>
|
||||
window.ipcRenderer?.sendSync('getApiCacheSync', {
|
||||
api: 'recommend/resource',
|
||||
}),
|
||||
}
|
||||
)
|
||||
|
||||
const playlists = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue