John-Hong 2 년 전
부모
커밋
f036c5db59
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/parkingFee/parkingFeeDiscounts.vue

+ 2 - 2
src/pages/parkingFee/parkingFeeDiscounts.vue

@@ -106,8 +106,8 @@ export default {
       this.parkDiscountTotal.feeCopy -= this.discountTotal.fee;
     }
 
-    this.parkFee = JSON.parse(uni.getStorageSync('parkFee'));
-    console.log(616161, this.parkFee);
+    const parkFee = uni.getStorageSync('parkFee')
+    this.parkFee = parkFee ? JSON.parse(uni.getStorageSync('parkFee')) : {};
     this.parkInfoEntity = this.parkFee.parkInfoEntity;
     this.parkInfoEntity.useReduceTime = this.parkInfoEntity.useReduceTime
       ? this.parkInfoEntity.useReduceTime