From 60dc6e178e4ab05ea8f62f7baa1dd72a5c20f93c Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 13 十二月 2021 16:10:13 +0800
Subject: [PATCH] fixed#132096: 查看完聯絡清單(或登出後再登入),顧問清單的黃點並不會消失

---
 PAMapp/assets/ts/api/appointment.ts |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/PAMapp/assets/ts/api/appointment.ts b/PAMapp/assets/ts/api/appointment.ts
index cfb1c6b..b324059 100644
--- a/PAMapp/assets/ts/api/appointment.ts
+++ b/PAMapp/assets/ts/api/appointment.ts
@@ -1,5 +1,5 @@
-import { service } from '~/assets/ts/api/share';
-import { AxiosResponse } from 'axios';
+import { http } from '~/assets/ts/services/httpClient';
+
 import { AppointmentLog } from '../models/appointment.model';
 
 // ���������
@@ -7,7 +7,7 @@
     const headers = {
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
-    return service.get('/consultant/getMyAppointment', {headers}).then(res => res.data);
+    return http.get('/consultant/getMyAppointment', {headers}).then(res => res.data);
 }
 
 // 璅�撌脰蝯�
@@ -16,7 +16,7 @@
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
     // TODO: 頝�垢蝣箄���ㄐ��� API 銝�府���� void, ���府���敺���� - Ben 2021/11/16
-    return service.post('/appointment/markAsContacted/'+appointmentId, undefined, {headers})
+    return http.post('/appointment/markAsContacted/'+appointmentId, undefined, {headers})
             .then(res => res.data)
 }
 
@@ -24,7 +24,7 @@
     const headers = {
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
-    return service.get('/satisfaction/getMySatisfaction', { headers }).then(res => res.data);
+    return http.get('/satisfaction/getMySatisfaction', { headers }).then(res => res.data);
 }
 
 
@@ -33,7 +33,7 @@
     const headers = {
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
-    return service.post('/consultant/record/allAppointmentsView', undefined, {headers})
+    return http.post('/consultant/record/allAppointmentsView', undefined, {headers})
 }
 
 // 霈�������孛�
@@ -41,7 +41,7 @@
     const headers = {
         Authorization: 'Bearer ' + localStorage.getItem('id_token')
     }
-    return service.post('/appointment/recordRead/' + appointmentId, undefined, {headers})
+    return http.post('/appointment/recordRead/' + appointmentId, undefined, {headers})
 }
 
 
@@ -65,4 +65,4 @@
     consultantReadTime: Date,
     contactTime      : Date,
     satisfactionScore: number
-}
\ No newline at end of file
+}

--
Gitblit v1.8.0