perf(logs): remove console.log

This commit is contained in:
Tran Anh Tuan
2025-11-21 14:27:00 +07:00
parent 46aaf67a71
commit 38c9639fcc
16 changed files with 54 additions and 53 deletions

View File

@@ -31,7 +31,7 @@ export const handleRequestConfig: RequestConfig = {
errorConfig: {
// Error throwing
errorThrower: (res: any) => {
console.log('Response from backend:', res);
// console.log('Response from backend:', res);
const { success, data, errorCode, errorMessage, showType } = res;
if (!success) {
const error: any = new Error(errorMessage);
@@ -68,7 +68,7 @@ export const handleRequestConfig: RequestConfig = {
// Request interceptors
requestInterceptors: [
(url: string, options: any) => {
console.log('URL Request:', url, options);
// console.log('URL Request:', url, options);
// Nếu URL không phải absolute URL, thêm base URL
let finalUrl = url;