fix(mobile): rsshub routes cache key
This commit is contained in:
parent
7229394143
commit
6828cf3241
|
|
@ -129,7 +129,7 @@ export const RecommendationTab: TabComponent<{
|
|||
const discoverLanguage = useUISettingKey("discoverLanguage")
|
||||
|
||||
const { data, isLoading } = useQuery({
|
||||
queryKey: ["rsshub-popular", "cache", tab.value],
|
||||
queryKey: ["rsshub-popular", "cache", tab.value, discoverLanguage],
|
||||
queryFn: () =>
|
||||
fetchRsshubPopular(tab.value, LanguageMap[discoverLanguage]).then((res) => res.data),
|
||||
staleTime: 1000 * 60 * 60 * 24, // 1 day
|
||||
|
|
|
|||
Loading…
Reference in New Issue