[feat] negodata/front: 협상대화 카드내용 렌더 + 견적상세 헤더·테이블 UI 정리
- 협상대화: 사용 카드 번호/멘트(Slate 서식본)/와일드 조건·메모 표시, SlateRenderer
밑줄·헥스색·{변수} 치환 보정, 말풍선 우측정렬·발신자 아바타 제거
- 견적상세 헤더: DB 컬럼명 라벨 제거, 견적정보/(진행상태+세팅)/상품(이미지) 2열 재배치,
협상카드 탭에 사용 카드 수 표시
- DataTable 행 패딩 축소, 협력사명 아바타 제거, 카드관리 본인 카드 안내문
- orval 재생성(QuotationCardData 신규 필드)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
df68609c49
commit
7186446068
114 files changed
+4731
-5537
No files matched your search
@@ -94,13 +94,19 @@ export const customFetch = async <T>(
|
||||
(url.startsWith('http') ? url : `${BASE_URL}${url}`) +
|
||||
(queryString ? `?${queryString}` : '');
|
||||
|
||||
// 파일 업로드(FormData)는 ① 브라우저가 boundary 포함 Content-Type 을 직접 설정해야 하고
|
||||
// ② 본문을 JSON.stringify 하면 "{}" 가 되어 파일이 통째로 누락된다. 분기 처리.
|
||||
const isFormData = typeof FormData !== 'undefined' && data instanceof FormData;
|
||||
|
||||
// [요청 인터셉터] 토큰을 받아 헤더를 구성하고 한 번 호출(만료 재시도 시 새 토큰으로 재구성).
|
||||
const doFetch = (token: string | null) => {
|
||||
const headers = new Headers(config.headers);
|
||||
if (options?.headers) {
|
||||
new Headers(options.headers).forEach((v, k) => headers.set(k, v));
|
||||
}
|
||||
if (data != null && !headers.has('Content-Type')) {
|
||||
if (isFormData) {
|
||||
headers.delete('Content-Type'); // 생성 클라이언트가 박은 boundary 없는 multipart 헤더 제거 → 브라우저가 재설정
|
||||
} else if (data != null && !headers.has('Content-Type')) {
|
||||
headers.set('Content-Type', 'application/json');
|
||||
}
|
||||
if (token) headers.set('Authorization', `Bearer ${token}`);
|
||||
@@ -108,7 +114,7 @@ export const customFetch = async <T>(
|
||||
...options,
|
||||
method,
|
||||
headers,
|
||||
body: data != null ? JSON.stringify(data) : options?.body,
|
||||
body: data != null ? (isFormData ? data : JSON.stringify(data)) : options?.body,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user