Skip to content

Commit

Permalink
fixed(Index): 修复文档内容缓存问题
Browse files Browse the repository at this point in the history
  • Loading branch information
stack-wuh committed Nov 1, 2022
1 parent 525e543 commit 91df738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/post/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function useData(id: string | string[] | undefined) {
return fetcher(`${API_ARTICLE_ITEM}${params.id}`)
}, {
defaultParams: [{ id }],
cacheKey: API_ARTICLE_ITEM,
cacheKey: `${API_ARTICLE_ITEM}_${id}`,
})

return {
Expand Down

0 comments on commit 91df738

Please sign in to comment.