diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx index d1470d09..7f365f5a 100644 --- a/pages/post/[id].tsx +++ b/pages/post/[id].tsx @@ -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 {