feat: check version

This commit is contained in:
yangsy
2025-09-09 10:34:44 +08:00
parent c61f02cc6c
commit 024db7d59e
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ export function useVersionCheckQuery() {
const { data: remoteVersionInfo, dataUpdatedAt } = useQuery({
queryKey: ['version-check'],
queryFn: async () => {
const { data } = await axios.get<VersionInfo>(`/version.json?t=${Date.now()}`);
const { data } = await axios.get<VersionInfo>(`/manifest.json?t=${Date.now()}`);
return data;
},
refetchInterval: 10 * 1000,