li.shaoyi 7 月之前
父節點
當前提交
aa26de1ea0
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/packages/sbyj/views/market/detail/index.vue

+ 2 - 2
src/packages/sbyj/views/market/detail/index.vue

@@ -383,8 +383,8 @@ onActivated(() => {
 onMounted(() => {
     subscribe.start(goodscode)
     if (goods?.canautoadddeposit === 1) { formData.IsAutoAddDeposit = 1 }
-    orderQty.value = qtyStepList.value.at(-1) ?? 1
-    qtyStep.value = qtyStepList.value.at(-1) ?? 1
+    orderQty.value = Math.min(...qtyStepList.value)
+    qtyStep.value = Math.min(...qtyStepList.value)
     getSBYJMyOrders()
 })