瀏覽代碼

fix: 不显示错误

lwxzks 4 月之前
父節點
當前提交
9d2ebb4b84
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 1 0
      component/global/bookingTabViewComponent.tsx
  2. 0 3
      service/chargeStationService.tsx

+ 1 - 0
component/global/bookingTabViewComponent.tsx

@@ -87,6 +87,7 @@ const processReservations = (reservations, allStations, isFuture): TabItem[] =>
             // 确保时间字段存在
             const bookTime = reservation.book_time ? new Date(reservation.book_time) : new Date();
             const actualEndTime = reservation.actual_end_time ? new Date(reservation.actual_end_time) : new Date();
+            // console.log('stationInfosssss', stationInfo.image);
             const img = stationInfo.image
                 ? { uri: stationInfo.image }
                 : require('../../assets/dummyStationPicture.png');

+ 0 - 3
service/chargeStationService.tsx

@@ -479,9 +479,6 @@ class ChargeStationService {
     }
 
     async fetchReservationHistories() {
-        const aa = await SecureStore.getItemAsync('accessToken');
-        console.log('ddddddd:', aa);
-
         try {
             const response = await axios.get(`${this.apiUrl}/clients/reservation/all`, {
                 headers: {