[fix] solution/frontend: 뒤로가기 후 재검색이 옛 사업장을 되살림 — placeId URL 우선순위 정정
주소창의 placeId 가 store 보다 우선이라(BuilderPage.tsx), 뒤로가기로 검색 단계에 돌아와도 그 placeId 가 그대로 남아 있으면 usePlaceSync 가 옛 사업장을 다시 확정 정보로 채워 넣었다 — 다른 상호로 재검색해도 이전 확정 화면이 그대로 떴다. - BuilderPage.tsx: step === 'search' 일 땐 주소창 placeId 를 안 쓴다 - Step2PlaceSearch.tsx: 뒤로가기 가드가 store 뿐 아니라 주소창 placeId·flow 도 지운다 [feat] solution/frontend: "고택" 템플릿 — 숙박·요식업·카페 공용, stay2 목업 색·서체 이식 industryData.ts 에 LOOK.paper(크림 종이·가는 명조·그림자 없음, stay2 실물에서 추출)와 paperTemplate() 을 추가해 stay·restaurant·cafe 세 업종의 네 번째 템플릿으로 등록. DOM 구조 이식은 solution/site 커밋에서 별도로 한다.
This commit is contained in:
1 parent
951e451ef8
commit
362c76d6c9
3 files changed
+58
-17
No files matched your search
@@ -207,6 +207,7 @@ export function Step2PlaceSearch() {
|
||||
}
|
||||
clearIdentity();
|
||||
search.reset();
|
||||
goToStep('search', {params: {placeId: null, flow: null}, replace: true});
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps -- 들어올 때 한 번만 판단한다
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user