perf(logs): remove console.log
This commit is contained in:
@@ -8,7 +8,7 @@ const getCurrentIP = () => {
|
||||
hostname.startsWith('192.168.') ||
|
||||
hostname.startsWith('10.')
|
||||
) {
|
||||
console.log('Host name: ', hostname);
|
||||
// console.log('Host name: ', hostname);
|
||||
|
||||
return hostname;
|
||||
}
|
||||
|
||||
@@ -47,7 +47,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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user