support 키 변경 관련

This commit is contained in:
focp212@naver.com
2025-10-29 11:07:58 +09:00
parent 51e38e9d45
commit 88445ec607
12 changed files with 81 additions and 61 deletions

View File

@@ -14,6 +14,9 @@ export const FaqDetailPage = () => {
const { navigate } = useNavigate();
const location = useLocation();
const [cursorId, setCursorId] = useState<number>(0);
const [seq, setSeq] = useState<string>('');
const [category, setCategory] = useState<string>('');
const [title, setTitle] = useState<string>('');
const [contents, setContents] = useState<string>('');
@@ -25,6 +28,9 @@ export const FaqDetailPage = () => {
});
useEffect(() => {
setCursorId(location?.state.cursorId);
setSeq(location?.state.seq);
setCategory(location?.state.category);
setTitle(location?.state.title);
setContents(location?.state.contents);
}, []);