fix bug of product-modal

This commit is contained in:
2026-10-17 13:33:33 +03:30
parent cf8a46ec9c
commit 9487490981
12 changed files with 67 additions and 19 deletions
+3
View File
@@ -308,6 +308,7 @@ import {
productMaxOrderCash,
productMinOrderCash
} from '@/utils/productOrderLimit'
import { isProductBuyOpen, isProductSellOpen } from '@/utils/productTradeOpen'
const infoVisible = ref(false)
const walletStore = useWalletStore()
@@ -689,6 +690,8 @@ function useStyle() {
function setIsBuy(val: boolean) {
if (val && !isProductBuyOpen(props?.ProductItem)) return
if (!val && !isProductSellOpen(props?.ProductItem)) return
isBuy.value = val
form.value.goldValue = undefined
form.value.goldCash = undefined