From 6b7f9d4627f3d6941c093329cf310ddcf6c3fc8e Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Tue, 20 Jan 2026 10:50:54 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=9B=84?= =?UTF-8?q?=20=EB=A6=AC=EB=8B=A4=EC=9D=B4=EB=A0=89=ED=8A=B8=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=EB=A5=BC=20=EC=83=88=20=EB=8C=80=EC=8B=9C=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 변경사항: - authController.js: 로그인 후 /pages/dashboard.html로 리다이렉트 - config.js: 모든 대시보드 경로를 /pages/dashboard.html로 통일 - work/report-view.html: 대시보드 버튼 경로 수정 이제 로그인하면 올바른 경로로 이동합니다. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- api.hyungi.net/controllers/authController.js | 4 ++-- web-ui/js/config.js | 12 ++++++------ web-ui/pages/work/report-view.html | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/api.hyungi.net/controllers/authController.js b/api.hyungi.net/controllers/authController.js index e8db790..bf9e598 100644 --- a/api.hyungi.net/controllers/authController.js +++ b/api.hyungi.net/controllers/authController.js @@ -21,9 +21,9 @@ const login = asyncHandler(async (req, res) => { throw new ApiError(result.error, result.status || 400); } - // 로그인 성공 후, 모든 권한을 그룹장 대시보드로 통일 + // 로그인 성공 후, 메인 대시보드로 리다이렉트 const user = result.data.user; - const redirectUrl = '/pages/dashboard/group-leader.html'; // 모든 사용자를 그룹장 대시보드로 리다이렉트 + const redirectUrl = '/pages/dashboard.html'; // 메인 대시보드로 리다이렉트 // 새로운 응답 포맷터 사용 res.auth(user, result.data.token, redirectUrl, '로그인 성공'); diff --git a/web-ui/js/config.js b/web-ui/js/config.js index bd3fa13..009e3bb 100644 --- a/web-ui/js/config.js +++ b/web-ui/js/config.js @@ -16,12 +16,12 @@ export const config = { paths: { // 로그인 페이지 경로 loginPage: '/index.html', - // 로그인 후 기본적으로 이동할 대시보드 경로 - defaultDashboard: '/pages/dashboard/user.html', - // 시스템 대시보드 경로 - systemDashboard: '/pages/dashboard/system.html', - // 그룹 리더 대시보드 경로 - groupLeaderDashboard: '/pages/dashboard/group-leader.html', + // 메인 대시보드 경로 (모든 사용자 공통) + dashboard: '/pages/dashboard.html', + // 하위 호환성을 위한 별칭들 + defaultDashboard: '/pages/dashboard.html', + systemDashboard: '/pages/dashboard.html', + groupLeaderDashboard: '/pages/dashboard.html', }, // 공용 컴포넌트 경로 설정 diff --git a/web-ui/pages/work/report-view.html b/web-ui/pages/work/report-view.html index 14cabf3..f7ca974 100644 --- a/web-ui/pages/work/report-view.html +++ b/web-ui/pages/work/report-view.html @@ -31,7 +31,7 @@
-