From 9cd4b35cedcfe107eb69eace11d08eaf9429149d Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 25 Feb 2025 14:38:47 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B8=ED=84=B0=EC=85=89=ED=84=B0=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios-interceptor.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/axios-interceptor.js b/src/common/axios-interceptor.js index c4163dd..3dd170d 100644 --- a/src/common/axios-interceptor.js +++ b/src/common/axios-interceptor.js @@ -37,14 +37,11 @@ $api.interceptors.response.use( }, function (error) { const toastStore = useToastStore(); - const currentPage = error.config.headers['X-Page-Route']; // 오류 응답 처리 if (error.response) { switch (error.response.status) { case 401: - if (currentPage === '/login') { - toastStore.onToast('아이디 혹은 비밀번호가 틀렸습니다.', 'e'); - } else { + if (!error.config.headers.isLogin) { toastStore.onToast('인증이 필요합니다.', 'e'); } break;