[fix] agent·negodata/front: 중간값 멘트 모순 수정(갑 포지션 갱신을 치환 뒤로·원값 인용가 반올림 제외·1% 카드 역행 금지) + 계정 전환 쿼리캐시 초기화·ChatTab 카드 렌더 정리 + font-mono 한글 폴백(Windows 한글깨짐)

This commit is contained in:
minaChoi committed 2026-08-07 15:48:48 +09:00
1 parent 7dc925bcd4
commit a405e00bf9
10 files changed
+72 -90

No files matched your search

@@ -10,6 +10,7 @@ import {useAuthStore, type AuthUser, type UserRole} from '../../stores/auth';
import {UserRole as UserRoleCode} from '../../api/generated/model';
import {USER_ROLE_LABEL} from '../../lib/enumLabels';
import {toMessage, resultMessage} from '../../lib/apiError';
import {queryClient} from '../../lib/query-client';
const ACCESS_KEY = 'negodata.accessToken';
const REFRESH_KEY = 'negodata.refreshToken';
@@ -69,6 +70,8 @@ export function initAuth(): Promise<void> {
export async function login(loginId: string, password: string): Promise<ResMe> {
const tokens = ensureOk(await loginRequest({id: loginId, password}));
// 직전 계정(다른 회사)의 캐시가 남아 브랜딩·목록이 그대로 보이는 것 방지
queryClient.clear();
localStorage.setItem(ACCESS_KEY, tokens.access_token ?? '');
localStorage.setItem(REFRESH_KEY, tokens.refresh_token ?? '');
setAccessToken(tokens.access_token ?? null);
@@ -105,4 +108,5 @@ export async function logout(): Promise<void> {
localStorage.removeItem(REFRESH_KEY);
setAccessToken(null);
useAuthStore.getState().setUser(null);
queryClient.clear();
}