From 7a9daa4732e1990476d7abd64e7d795d173d587b Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 11 Feb 2025 10:32:53 +0900 Subject: [PATCH 1/3] =?UTF-8?q?menu=20=EC=A3=BC=EC=84=9D=20=ED=92=80?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index cafce3b..3a0ef47 100644 --- a/index.html +++ b/index.html @@ -74,7 +74,7 @@ - + From c3b2bcec668f8fad05f44054d0199c0be2c73319 Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 11 Feb 2025 10:33:09 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=EC=9D=B8=ED=84=B0?= =?UTF-8?q?=EC=85=89=ED=84=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios-interceptor.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/axios-interceptor.js b/src/common/axios-interceptor.js index f60b3d8..05f3abd 100644 --- a/src/common/axios-interceptor.js +++ b/src/common/axios-interceptor.js @@ -1,4 +1,5 @@ import axios from "axios"; +import { useRoute } from 'vue-router'; import { useToastStore } from '@s/toastStore'; const $api = axios.create({ @@ -37,11 +38,16 @@ $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: - toastStore.onToast('아이디 혹은 비밀번호가 틀렸습니다.', 'e'); + if (currentPage === '/login') { + toastStore.onToast('아이디 혹은 비밀번호가 틀렸습니다.', 'e'); + } else { + toastStore.onToast('인증이 필요합니다.', 'e'); + } break; case 403: toastStore.onToast('접근 권한이 없습니다.', 'e'); From 724f0afc6110eab6001031b953c20daa4d91f634 Mon Sep 17 00:00:00 2001 From: yoon Date: Tue, 11 Feb 2025 10:33:40 +0900 Subject: [PATCH 3/3] =?UTF-8?q?headers=20=EA=B2=BD=EB=A1=9C=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20->=20=EC=9D=91=EB=8B=B5=20=EB=8B=A4=EB=A5=B4?= =?UTF-8?q?=EA=B2=8C=20=ED=95=98=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/user/LoginForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/user/LoginForm.vue b/src/components/user/LoginForm.vue index 7603875..55b1e4a 100644 --- a/src/components/user/LoginForm.vue +++ b/src/components/user/LoginForm.vue @@ -38,10 +38,10 @@