From 66e1c67a76bc06511e727b8bdc9fb36ef734ba88 Mon Sep 17 00:00:00 2001 From: hiyu Date: Fri, 21 Jun 2024 14:06:07 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20r=C3=BAt=20ti=E1=BB=81n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/withdraw/Withdraw.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/withdraw/Withdraw.vue b/src/components/withdraw/Withdraw.vue index 7a742a9..9739ef7 100644 --- a/src/components/withdraw/Withdraw.vue +++ b/src/components/withdraw/Withdraw.vue @@ -19,6 +19,10 @@ const formData = reactive({ password_withdraw: "", }); +const clickAll = () => { + formData.amount = userInfo.value.money ?? 0 +} + const submit = () => { if (isNaN(formData.amount) || formData.amount <= 0) { return showFailToast("Vui lòng điền số điểm chính xác."); @@ -73,7 +77,7 @@ const submit = () => { - Tất cả + Tất cả
@@ -104,7 +108,7 @@ const submit = () => {
- VND:1000Đ + VND:{{ formatNumber(userInfo.money) }}Đ