diff --git a/tkpurchase/web/partner-portal.html b/tkpurchase/web/partner-portal.html index a79943e..23492a7 100644 --- a/tkpurchase/web/partner-portal.html +++ b/tkpurchase/web/partner-portal.html @@ -6,7 +6,7 @@ 협력업체 포털 - TK 구매관리 - + @@ -81,8 +81,8 @@ - - + + diff --git a/tkpurchase/web/schedule.html b/tkpurchase/web/schedule.html index 3575d9d..2dce85e 100644 --- a/tkpurchase/web/schedule.html +++ b/tkpurchase/web/schedule.html @@ -6,7 +6,7 @@ 작업일정 - TK 구매관리 - + @@ -271,8 +271,8 @@ - - + + diff --git a/tkpurchase/web/static/js/tkpurchase-partner-portal.js b/tkpurchase/web/static/js/tkpurchase-partner-portal.js index 9b134da..5254f8a 100644 --- a/tkpurchase/web/static/js/tkpurchase-partner-portal.js +++ b/tkpurchase/web/static/js/tkpurchase-partner-portal.js @@ -10,8 +10,8 @@ async function loadMySchedules() { try { const r = await api('/schedules/my'); const data = r.data || {}; - portalSchedules = data.schedules || []; - portalRequests = data.requests || []; + portalSchedules = Array.isArray(data) ? data : (data.schedules || []); + portalRequests = Array.isArray(data) ? [] : (data.requests || []); } catch(e) { console.warn('Load schedules error:', e); portalSchedules = [];