메뉴관리 다국어 중간 커밋
This commit is contained in:
@@ -59,10 +59,10 @@ apiClient.interceptors.request.use(
|
||||
console.warn("⚠️ 토큰이 없습니다.");
|
||||
}
|
||||
|
||||
// 언어 정보를 쿼리 파라미터에 추가
|
||||
// 언어 정보를 쿼리 파라미터에 추가 (GET 요청 시에만)
|
||||
if (config.method?.toUpperCase() === "GET") {
|
||||
// 전역 언어 상태에서 현재 언어 가져오기
|
||||
const currentLang = typeof window !== "undefined" ? (window as any).__GLOBAL_USER_LANG || "ko" : "ko";
|
||||
// 전역 언어 상태에서 현재 언어 가져오기 (DB 값 그대로 사용)
|
||||
const currentLang = typeof window !== "undefined" ? (window as any).__GLOBAL_USER_LANG || "KR" : "KR";
|
||||
console.log("🌐 API 요청 시 언어 정보:", currentLang);
|
||||
|
||||
if (config.params) {
|
||||
|
||||
Reference in New Issue
Block a user