From 156cfb0488bfcad84a159c80c138f001a52fb493 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 18 Mar 2025 14:24:21 +0900 Subject: [PATCH 1/3] 1 --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index 4461e85..9ad72f2 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; From 701497a0b0a4a7e101eb05ba6dd6355cadc544d4 Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 18 Mar 2025 14:27:21 +0900 Subject: [PATCH 2/3] d --- src/layouts/TheMenu.vue | 2 +- src/router/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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("/"); } From dfb2a3e57e9609b1075acd963c04cc178d269522 Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Tue, 18 Mar 2025 15:48:45 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=ED=95=84=ED=84=B0=20=EB=82=A0=EC=A7=9C=20?= =?UTF-8?q?=EB=B0=8F=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EA=B0=9C=EC=88=98=20?= =?UTF-8?q?100=EA=B0=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/BoardList.vue | 344 +++++++++++++++++----------------- 1 file changed, 174 insertions(+), 170 deletions(-) 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 @@
-
+
- + @@ -38,26 +39,33 @@ - - - - - + + + + + - + @click="goDetail(post.realId)" + > @@ -86,9 +99,7 @@
번호제목작성자작성일조회수번호제목작성자작성일조회수
{{ post.id }} {{ post.title }} [ {{ post.commentCount }} ] - + N {{ post.author }}
-

- 게시물이 없습니다. -

+

게시물이 없습니다.

@@ -96,11 +107,7 @@
- +
@@ -109,172 +116,169 @@