Jelajahi Sumber

Update index.tsx

lex 2 tahun lalu
induk
melakukan
90a38ad7ee
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/views/cart/cart-confirm/index.tsx

+ 1 - 1
src/views/cart/cart-confirm/index.tsx

@@ -131,7 +131,7 @@ export default defineComponent({
         cartIds: ids,
         memberReceiveAddressId: address.value?.id,
         platformType: state.platformType,
-        orderAmount: (payAmount >= 0 ? payAmount : 0).toFixed(2),
+        orderAmount: Number((payAmount >= 0 ? payAmount : 0).toFixed(2)),
         couponId: orderInfo.couponId
       }
       try {