From 1ffc8033b5c013399185dd3cca85b66ea6506517 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 31 七月 2023 19:34:33 +0800
Subject: [PATCH] revert: Fixed: 調整錯誤的 insert API URL

---
 PAMapp/shared/services/httpClient.ts |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/PAMapp/shared/services/httpClient.ts b/PAMapp/shared/services/httpClient.ts
index e704513..001821f 100644
--- a/PAMapp/shared/services/httpClient.ts
+++ b/PAMapp/shared/services/httpClient.ts
@@ -10,11 +10,12 @@
   '/eService/authenticate',
   '/login/validate/get_img_code',
   '/login/validate/verify_img_code',
+  '/api/access_analysis/insert'
 ];
 
 export const http = axios.create({
   baseURL: process.env.BASE_URL,
-  withCredentials: true
+  withCredentials: true,
 });
 
 let apiNumber = 0;
@@ -48,7 +49,8 @@
 
 function addHttpHeader(config: AxiosRequestConfig): void {
   config.headers = {
-    Authorization: 'Bearer ' + localStorage.getItem('id_token')
+    Authorization: 'Bearer ' + localStorage.getItem('id_token'),
+    'content-type': 'application/json'
   }
 }
 
@@ -66,9 +68,8 @@
 
 function showErrorMessageBox(error: any): void {
   setTimeout(() => {
-    console.log('errorerrorerror', error.config);
     // NOTE: 甇斤 HOT FIX 憿批��憭望������暹��� dialog [Tomas, 2022/7/20 14:21]
-    if(error.config.url.includes('api/eService/authenticate')) return;
+    if(error.config.url.includes('/eService/authenticate')) return;
     if (error.config.url.includes('/otp/sendOtp')) {
       messageBoxService.showErrorMessage('', error);
       return

--
Gitblit v1.8.0