-
리엑트 라우터 경로 자동변경 문제Error records 2022. 2. 7. 16:42
밑의 사진의 경로 순서는 App.js->AccountRoutes.js->SingUpPage->AuthApis.js
보면 AuthApis에서 경로가 memberIdCheck이라고 되어있는데(baseURL설정 없음)
콘솔창에 뜬 에러를 보면 /accounts/memberIdCheck이라는 라우터로 리퀘스트를 날린것을 볼 수 있따.
즉 리엑트 App.js에 있는 리엑트 라우터 상에서 /accounts/*이부분의 영향을 받아 기본적으로 url에 accounts가 딸려 붙는 것을 알 수 있다.
'Error records' 카테고리의 다른 글
Json서버 Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client (0) 2022.02.06 useState는 비동기이다. 이를 동기적으로 처리하는 방법 (0) 2022.02.04 로그인 할 때 비동기 처리가 필요하다 (0) 2022.01.31 Error 도 객체다 (0) 2022.01.26 "Duplicate entry '' for key 'users.PRIMARY'", (0) 2022.01.16