From 63e5969515653135fcb5bd668ccabd95a301dcae Mon Sep 17 00:00:00 2001 From: hiyu Date: Wed, 19 Jun 2024 18:12:16 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20n=E1=BA=A1p=20ti=E1=BB=81n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/deposit/Channel.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/deposit/Channel.vue b/src/components/deposit/Channel.vue index d1a8471..d72cc30 100644 --- a/src/components/deposit/Channel.vue +++ b/src/components/deposit/Channel.vue @@ -20,9 +20,9 @@ const type = ref(""); const amount = Number(route.query.money); const bankInfo = reactive({ - bankName: "bank", - accountNumber: "123456", - holder: "NGUYEN VAN A" + bankName: "", + accountNumber: "", + holder: "" }) if (isNaN(amount) || amount <= 0) { @@ -30,10 +30,11 @@ if (isNaN(amount) || amount <= 0) { } const submit = () => { - handleRequest(axios.post(API.TRANSACTION_DEPOSIT, { amount, note: "ok" })).then(res => { if(res.success) { type.value = 'bank'; + console.log(res.data.bank) + Object.assign(bankInfo, res.data.bank) } else { showFailToast(res.message ?? "Lỗi nạp tiền") }