diff --git a/src/layouts/TheMenu.vue b/src/layouts/TheMenu.vue index 9aeb775..cb8e8fb 100644 --- a/src/layouts/TheMenu.vue +++ b/src/layouts/TheMenu.vue @@ -96,7 +96,7 @@ import { computed } from "vue"; import { useUserInfoStore } from '@s/useUserInfoStore'; const userStore = useUserInfoStore(); -const allowedUserId = 26; // 특정 ID (변경필요!!) +const allowedUserId = 1; // 특정 ID (변경필요!!) const userId = computed(() => userStore.user?.id ?? null); diff --git a/src/router/index.js b/src/router/index.js index 9ad72f2..9ec3040 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -120,7 +120,7 @@ router.beforeEach(async (to, from, next) => { return next({ name: 'Login', query: { redirect: to.fullPath } }); } - // Authorization 페이지는 ID가 26이 아니면 접근 차단 + // Authorization 페이지는 ID가 1이 아니면 접근 차단 if (to.path === "/authorization" && userId !== allowedUserId) { return next("/"); }