fix(auth): 账号切换 - 切换用户后清空旧账号缓存并隔离积分响应

This commit is contained in:
ddCat
2026-07-28 08:02:59 +08:00
parent c392f09da0
commit a2911ad32f
4 changed files with 61 additions and 28 deletions

View File

@@ -0,0 +1,11 @@
import { QueryClient } from "@tanstack/react-query";
export const appQueryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 30_000,
retry: false,
refetchOnWindowFocus: false,
},
},
});