fix(tkpurchase): 협력업체 포탈 캐시로 인한 로딩 실패 수정
구 JS 캐시가 신 API 응답(객체)을 배열로 처리하여 TypeError 발생. Array.isArray 방어 로직 추가 + 캐시 버스팅 버전 갱신(v=20260313a). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
<title>협력업체 포털 - TK 구매관리</title>
|
<title>협력업체 포털 - TK 구매관리</title>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||||
<link rel="stylesheet" href="/static/css/tkpurchase.css?v=20260313">
|
<link rel="stylesheet" href="/static/css/tkpurchase.css?v=20260313a">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
@@ -81,8 +81,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/tkpurchase-core.js?v=20260313"></script>
|
<script src="/static/js/tkpurchase-core.js?v=20260313a"></script>
|
||||||
<script src="/static/js/tkpurchase-partner-portal.js?v=20260313"></script>
|
<script src="/static/js/tkpurchase-partner-portal.js?v=20260313a"></script>
|
||||||
<script>initPartnerPortal();</script>
|
<script>initPartnerPortal();</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<title>작업일정 - TK 구매관리</title>
|
<title>작업일정 - TK 구매관리</title>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||||||
<link rel="stylesheet" href="/static/css/tkpurchase.css?v=20260312">
|
<link rel="stylesheet" href="/static/css/tkpurchase.css?v=20260313aa">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Header -->
|
<!-- Header -->
|
||||||
@@ -271,8 +271,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/tkpurchase-core.js?v=20260313"></script>
|
<script src="/static/js/tkpurchase-core.js?v=20260313a"></script>
|
||||||
<script src="/static/js/tkpurchase-schedule.js?v=20260313"></script>
|
<script src="/static/js/tkpurchase-schedule.js?v=20260313a"></script>
|
||||||
<script>initSchedulePage();</script>
|
<script>initSchedulePage();</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ async function loadMySchedules() {
|
|||||||
try {
|
try {
|
||||||
const r = await api('/schedules/my');
|
const r = await api('/schedules/my');
|
||||||
const data = r.data || {};
|
const data = r.data || {};
|
||||||
portalSchedules = data.schedules || [];
|
portalSchedules = Array.isArray(data) ? data : (data.schedules || []);
|
||||||
portalRequests = data.requests || [];
|
portalRequests = Array.isArray(data) ? [] : (data.requests || []);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.warn('Load schedules error:', e);
|
console.warn('Load schedules error:', e);
|
||||||
portalSchedules = [];
|
portalSchedules = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user