260320:1131 Refactor Overrall #01
Build and Deploy / deploy (push) Has been cancelled

This commit is contained in:
admin
2026-03-20 11:31:27 +07:00
parent f1b81a7d0d
commit 1d3479770b
147 changed files with 1745 additions and 1567 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ apiClient.interceptors.request.use(
}
}
} catch (error) {
console.warn("Failed to retrieve auth token:", error);
// Auth token retrieval failed - request will proceed without token
}
}
@@ -66,7 +66,7 @@ apiClient.interceptors.response.use(
// กรณี Token หมดอายุ หรือ ไม่มีสิทธิ์
if (status === 401) {
console.error("Unauthorized: Please login again.");
// Unauthorized: redirect handled by auth interceptor
// สามารถเพิ่ม Logic Redirect ไปหน้า Login ได้ถ้าต้องการ
}
}
-1
View File
@@ -300,7 +300,6 @@ export const numberingApi = {
): Promise<{ number: string }> => {
// Fallback mock for legacy UI - requires proper context for real use
const mockNumber = `TEST-${new Date().getFullYear()}-${String(Math.floor(Math.random() * 9999)).padStart(4, '0')}`;
console.log('Using mock generateTestNumber. Context:', context);
return { number: mockNumber };
},
};