refactor(client): remove excess api version header

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-02-06 20:58:23 +08:00
parent f4a5b37892
commit 5cf00407b4
17 changed files with 305 additions and 187 deletions

View File

@@ -6,7 +6,6 @@ import {
} from 'react';
import z from 'zod';
import { postAuthTokenMutation } from '@/client/@tanstack/react-query.gen';
import { ver } from '@/lib/apiVersion';
import { setAccessToken, setRefreshToken } from '@/lib/token';
const tokenCodeSchema = z.object({
@@ -37,7 +36,7 @@ function RouteComponent() {
useEffect(() => {
if (mutation.isIdle) {
mutation.mutate({ body: { code }, headers: ver('20260205') });
mutation.mutate({ body: { code } });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);