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 4461e85..9ec3040 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -111,7 +111,7 @@ const router = createRouter({ router.beforeEach(async (to, from, next) => { const authStore = useAuthStore(); await authStore.checkAuthStatus(); // 로그인 상태 확인 - const allowedUserId = 26; // 특정 ID (변경필요!!) + const allowedUserId = 1; // 특정 ID (변경필요!!) const userStore = useUserInfoStore(); const userId = userStore.user?.id ?? null; @@ -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("/"); } diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 9b37c8a..db2ff6b 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -6,18 +6,19 @@