[라우터 방식 변경]

This commit is contained in:
2025-09-24 16:35:52 +09:00
parent f9dde4eb09
commit 19bda71444
5 changed files with 19 additions and 25 deletions

View File

@@ -85,9 +85,9 @@ const router = useRouter();
const userStore = useUserStore();
// 이미 로그인된 경우 홈으로 리다이렉션
onMounted(() => {
onMounted(async () => {
if (userStore.isLoggedIn) {
router.push("/");
await navigateTo("/");
}
});
@@ -133,8 +133,8 @@ async function signUp() {
"회원 가입이 완료되었습니다! 로그인 페이지로 이동합니다.";
// 2초 후 로그인 페이지로 이동
setTimeout(() => {
router.push("/login");
setTimeout(async () => {
await navigateTo("/login");
}, 2000);
}
} catch (error: any) {