feat: 사이드바 순서 변경 + 기본 진입 경로 일정으로

- 사이드바 nav 순서: 일정 → 내 업무 → 프로젝트
- 기본 진입을 /schedule 로: 루트 redirect, 로그인 후 이동, 로그인 상태에서
  로그인/가입 진입 가드, 소셜 로그인(구글/카카오) 콜백

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-23 13:39:38 +09:00
parent ad950e88ad
commit 34b5b1d552
4 changed files with 31 additions and 31 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ import { useAuthStore } from '@/stores/auth.store'
const routes: RouteRecordRaw[] = [
{
path: '/',
redirect: '/projects',
redirect: '/schedule',
},
{
path: '/login',
@@ -134,13 +134,13 @@ router.beforeEach(async (to) => {
return { name: 'login' }
}
// 이미 로그인 상태에서 로그인/회원가입 진입 → 프로젝트 목록으로
// 이미 로그인 상태에서 로그인/회원가입 진입 → 기본 화면(일정)으로
if (
!to.meta.requiresAuth &&
authStore.isLoggedIn &&
(to.name === 'login' || to.name === 'signup')
) {
return { path: '/projects' }
return { path: '/schedule' }
}
return true