fix bug of product-modal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user