瀏覽代碼

Update index.tsx

lex 2 年之前
父節點
當前提交
90a38ad7ee
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {