From e67db1570bb31c9f19c91afd40b35c5f53695d9e Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 20 七月 2022 14:22:37 +0800
Subject: [PATCH] fix: 顧問登入失敗後,不該顯示「逾時」告警

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

diff --git a/PAMapp/shared/services/httpClient.ts b/PAMapp/shared/services/httpClient.ts
index bafed6e..7441584 100644
--- a/PAMapp/shared/services/httpClient.ts
+++ b/PAMapp/shared/services/httpClient.ts
@@ -6,6 +6,7 @@
 
 const notRequireInterceptorErrorUrl = [
   '/otp/verify',
+  '/otp/sendOtp',
   '/eService/authenticate',
   '/login/validate/get_img_code',
   '/login/validate/verify_img_code',
@@ -64,8 +65,9 @@
 };
 
 function showErrorMessageBox(error: any): void {
-  // console.log('error', error, error.response);
   setTimeout(() => {
+    // NOTE: 甇斤 HOT FIX 憿批��憭望������暹��� dialog [Tomas, 2022/7/20 14:21]
+    if(error.config.url.include('api/eService/authenticate')) return;
     if (!_.includes(notRequireInterceptorErrorUrl, error.config.url)) {
       switch (error.response.status) {
         case 401:

--
Gitblit v1.8.0