From 1817341b202988cca4d0babc571615deb8a140b3 Mon Sep 17 00:00:00 2001 From: Megghy Date: Tue, 12 Mar 2024 19:17:29 +0800 Subject: [PATCH] fix buy check --- src/views/pointViews/PointGoodsView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/pointViews/PointGoodsView.vue b/src/views/pointViews/PointGoodsView.vue index d8fe260..51b0c4d 100644 --- a/src/views/pointViews/PointGoodsView.vue +++ b/src/views/pointViews/PointGoodsView.vue @@ -60,7 +60,7 @@ const currentGoods = ref() const buyCount = ref(1) const selectedAddress = ref() const canDoBuy = computed(() => { - return currentGoods.value && currentGoods.value.price * buyCount.value < currentPoint.value + return currentGoods.value && currentGoods.value.price * buyCount.value <= currentPoint.value }) const addressOptions = computed(() => {