refactor: 프론트엔드 SSO 인증 통합 및 API 경로 정리
- Gateway 로그인/포탈 페이지 SSO 연동 - System1 web/fastapi-bridge API base URL 동적 설정 - SSO 토큰 기반 인증 흐름 통일 - deprecated JS 파일 삭제 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
}
|
||||
|
||||
if (!window.apiCall) {
|
||||
console.error('❌ API 함수를 로드할 수 없습니다.');
|
||||
console.error(' API 함수를 로드할 수 없습니다.');
|
||||
showMessage('시스템을 초기화할 수 없습니다. 페이지를 새로고침해주세요.', 'error');
|
||||
return;
|
||||
}
|
||||
@@ -84,7 +84,6 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
});
|
||||
|
||||
async function initializePage() {
|
||||
console.log('🚀 개별 작업 보고서 페이지 초기화 시작');
|
||||
|
||||
// URL 파라미터 추출
|
||||
const params = getUrlParams();
|
||||
@@ -112,7 +111,6 @@ async function initializePage() {
|
||||
// 초기 데이터 로드
|
||||
await loadInitialData();
|
||||
|
||||
console.log('✅ 개별 작업 보고서 페이지 초기화 완료');
|
||||
}
|
||||
|
||||
function updatePageHeader() {
|
||||
@@ -191,7 +189,6 @@ async function loadExistingWork() {
|
||||
try {
|
||||
const response = await window.apiCall(`/daily-work-reports?date=${selectedDate}&user_id=${currentWorkerId}`);
|
||||
existingWork = Array.isArray(response) ? response : (response.data || []);
|
||||
console.log(`✅ 기존 작업 ${existingWork.length}건 로드 완료`);
|
||||
} catch (error) {
|
||||
console.error('기존 작업 로드 오류:', error);
|
||||
existingWork = [];
|
||||
|
||||
Reference in New Issue
Block a user