From 684b4a9bef2eed08b39d15fd1778b8d9fce575c7 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Wed, 12 Mar 2025 15:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AF=E5=BC=80=E5=92=8C?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contract/exchange-store.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/contract/exchange-store.vue b/src/views/contract/exchange-store.vue index 5f904b8..2b50fc0 100644 --- a/src/views/contract/exchange-store.vue +++ b/src/views/contract/exchange-store.vue @@ -334,10 +334,10 @@ export default { // return math.omitTo(this.form.amount*this.unit_amount / this.form.lever_rate, 4); // }, amount(){ - console.info(this.form.lever_rate) - console.info(this.margin) + // console.info(this.form.lever_rate) + // console.info(this.margin) if (!this.form.lever_rate || !this.margin) return 0; - let p=this.margin*this.form.lever_rate; + let p = Math.round(this.margin*this.form.lever_rate); this.form.amount=p; return p