fix: bugs

fix: bugs
This commit is contained in:
qier222 2022-04-09 00:28:37 +08:00
parent 1444bbefa2
commit 70d1de0e0f
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
62 changed files with 368 additions and 284 deletions

View file

@ -2,10 +2,11 @@ import {
PlaylistApiNames,
fetchRecommendedPlaylists,
fetchDailyRecommendPlaylists,
} from '@/api/playlist'
import CoverRow from '@/components/CoverRow'
import DailyTracksCard from '@/components/DailyTracksCard'
import FMCard from '@/components/FMCard'
} from '@/renderer/api/playlist'
import CoverRow from '@/renderer/components/CoverRow'
import DailyTracksCard from '@/renderer/components/DailyTracksCard'
import FMCard from '@/renderer/components/FMCard'
import { IpcChannels } from '@/main/IpcChannelsName'
export default function Home() {
const {
@ -17,7 +18,7 @@ export default function Home() {
{
retry: false,
placeholderData: () =>
window.ipcRenderer?.sendSync('getApiCacheSync', {
window.ipcRenderer?.sendSync(IpcChannels.GetApiCacheSync, {
api: 'recommend/resource',
}),
}
@ -33,7 +34,7 @@ export default function Home() {
},
{
placeholderData: () =>
window.ipcRenderer?.sendSync('getApiCacheSync', {
window.ipcRenderer?.sendSync(IpcChannels.GetApiCacheSync, {
api: 'personalized',
}),
}