From 11ebea8ccdbe8c817b76800b627431567e836f0a Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Thu, 10 Apr 2025 15:14:53 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B6=8C=ED=95=9C=EB=B6=80=EC=97=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- src/views/admin/TheAuthorization.vue | 133 +++++++++++++++------------ 2 files changed, 75 insertions(+), 60 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index f0e7e0b..c4bd7b1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -148,7 +148,7 @@ router.beforeEach(async (to, from, next) => { // Authorization 페이지는 ID가 26이 아니면 접근 차단 if (to.path === '/authorization' && userId !== allowedUserId) { - return next('/'); + return next(); } // 비로그인 사용자만 접근 가능한 페이지인데 로그인된 경우 → 홈으로 이동 diff --git a/src/views/admin/TheAuthorization.vue b/src/views/admin/TheAuthorization.vue index f75ae67..96da833 100644 --- a/src/views/admin/TheAuthorization.vue +++ b/src/views/admin/TheAuthorization.vue @@ -1,26 +1,35 @@