fix(client): shit apiVersion everywhere
All checks were successful
Client CMS Check Build (NixCN CMS) TeamCity build finished
Backend Check Build (NixCN CMS) TeamCity build finished

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit was merged in pull request #10.
This commit is contained in:
2026-02-05 19:19:48 +08:00
committed by Asai Neko
parent 2c22c0ec5c
commit 7afc6ec25e
7 changed files with 17 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ 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({
@@ -36,7 +37,7 @@ function RouteComponent() {
useEffect(() => {
if (mutation.isIdle) {
mutation.mutate({ body: { code } });
mutation.mutate({ body: { code }, headers: ver('20260205') });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);