feat(tkfb): navigation.js 모듈 추가 — api-config.js import 404 해결

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-13 22:09:40 +09:00
parent cea72b1858
commit cc626a408e

View File

@@ -0,0 +1,14 @@
// js/navigation.js — ES6 모듈
// tkfb-core.js (non-module)에서 window에 등록한 함수들에 위임
export function redirectToLogin() {
if (window.getLoginUrl) {
window.location.href = window.getLoginUrl();
} else {
window.location.href = '/login.html';
}
}
export function redirectToDefaultDashboard(redirectUrl) {
window.location.href = redirectUrl || '/';
}