Skip to content

Commit

Permalink
feat(Index): 首页数据异步加载
Browse files Browse the repository at this point in the history
  • Loading branch information
stack-wuh committed Oct 16, 2022
1 parent 3341de8 commit fa2688f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ const Home = (props: IHomeProps) => {
]}
/>
<DynamicBanner data={bannerList} />
<PostList data={initialData} />
{
initialData && <PostList data={initialData} />
}
</div>
)
}
Expand Down

0 comments on commit fa2688f

Please sign in to comment.