From 51a42dd2157d1895863b8569de788645c66a230d Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Fri, 31 Oct 2025 09:44:23 +0900 Subject: [PATCH] =?UTF-8?q?401=20=EC=98=A4=EB=A5=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/configs/axios/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shared/configs/axios/index.ts b/src/shared/configs/axios/index.ts index 4a07f50..2f57e21 100644 --- a/src/shared/configs/axios/index.ts +++ b/src/shared/configs/axios/index.ts @@ -79,12 +79,13 @@ const onResponseRejected = (error: AxiosError) => { useStore.getState().UserStore.setUserInfo({ ...token }); - location.reload(); + return error.config? axios.request(error.config): null; }); } else{ let params = { - id: 'woowahan5', + // id: 'woowahan5', + id: 'nictest00', password: 'nictest00' }; return login(params).then((result: LoginResponse) => {