fix: 부품 마스터 서브 탭 복구 및 모바일 QR 코드 접근 시 Nginx 라우팅 오류 해결
- 부품 마스터 페이지 내 상단 헤더(.page-header)가 존재하지 않는 경우에도 '부품 표준 등급' 및 '직무별 기준 사양' 탭이 최상단에 안전하게 표시되도록 보완 - 모바일 QR 스캔 시 확장자 없는 가상 경로(/mobile) 요청이 데스크톱 메인 페이지(/index.html)로 Fallback되던 현상을 수정하기 위해 Nginx 설정에 내부 rewrite 규칙 추가 - 에이전트 개발 규칙 파일(.agents/AGENTS.md) 등록
This commit is contained in:
@@ -130,9 +130,6 @@ export function renderPartsMasterList(container: HTMLElement) {
|
||||
}
|
||||
|
||||
function renderSubTabs(container: HTMLElement) {
|
||||
const header = container.querySelector('.page-header');
|
||||
if (!header) return;
|
||||
|
||||
// 기존에 생성된 탭 바가 있다면 제거하여 중복 방지 (스타일만 수정하는 최소 침습 방식)
|
||||
const existingTabs = container.querySelector('.sub-tab-container');
|
||||
if (existingTabs) existingTabs.remove();
|
||||
@@ -153,7 +150,12 @@ function renderSubTabs(container: HTMLElement) {
|
||||
</button>
|
||||
`;
|
||||
|
||||
header.parentNode!.insertBefore(tabContainer, header.nextSibling);
|
||||
const header = container.querySelector('.page-header');
|
||||
if (header) {
|
||||
header.parentNode!.insertBefore(tabContainer, header.nextSibling);
|
||||
} else {
|
||||
container.insertBefore(tabContainer, container.firstChild);
|
||||
}
|
||||
|
||||
const tabPartsMaster = tabContainer.querySelector('#tab-parts-master')!;
|
||||
const tabJobSpec = tabContainer.querySelector('#tab-job-spec')!;
|
||||
|
||||
Reference in New Issue
Block a user