Compare commits
2 Commits
7db072ed14
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d49aa01bd5 | ||
|
|
f28922a3ae |
@@ -489,7 +489,7 @@
|
||||
|
||||
// ===== Card Definitions =====
|
||||
var SYSTEM_CARDS = [
|
||||
{ id: 'factory', name: '공장관리', desc: '작업장 현황, TBM, 설비관리', icon: '\uD83C\uDFED', subdomain: 'tkfb', path: '/pages/dashboard.html', pageKey: 'dashboard', color: '#1a56db' },
|
||||
{ id: 'factory', name: '공장관리', desc: '작업장 현황, TBM, 설비관리', icon: '\uD83C\uDFED', subdomain: 'tkfb', path: '/pages/dashboard-new.html', pageKey: 'dashboard', color: '#1a56db' },
|
||||
{ id: 'report_sys', name: '신고', desc: '사건·사고 신고 접수', icon: '\uD83D\uDEA8', subdomain: 'tkreport', accessKey: 'system2', color: '#dc2626' },
|
||||
{ id: 'quality', name: '부적합관리', desc: '부적합 이슈 추적·처리', icon: '\uD83D\uDCCA', subdomain: 'tkqc', accessKey: 'system3', color: '#059669' },
|
||||
{ id: 'purchase', name: '구매관리', desc: '자재 구매, 일용직 관리', icon: '\uD83D\uDED2', subdomain: 'tkpurchase', color: '#d97706' },
|
||||
|
||||
@@ -20,10 +20,12 @@ self.addEventListener('activate', function(event) {
|
||||
});
|
||||
|
||||
self.addEventListener('fetch', function(event) {
|
||||
// API, POST, cross-origin 요청은 캐싱하지 않음
|
||||
// API, POST, cross-origin, 로그인/대시보드 프록시 경로는 캐싱하지 않음
|
||||
if (event.request.url.includes('/api/')) return;
|
||||
if (event.request.method !== 'GET') return;
|
||||
if (!event.request.url.startsWith(self.location.origin)) return;
|
||||
var path = new URL(event.request.url).pathname;
|
||||
if (path === '/dashboard' || path === '/login' || path === '/auth' || path.startsWith('/auth/')) return;
|
||||
|
||||
event.respondWith(
|
||||
fetch(event.request)
|
||||
|
||||
Reference in New Issue
Block a user