diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue index 4001f23..ab35d01 100644 --- a/pages/exchange/open-position.vue +++ b/pages/exchange/open-position.vue @@ -1457,8 +1457,10 @@ export default { }; Contract.contractAccount(data, {loading: !boo, toast: false}).then((res) => { // console.info(res) - res.data.account_equity = (parseInt(res.data.account_equity)).toFixed(2) - res.data.usable_balance = (res.data.usable_balance).toFixed(2) + // res.data.account_equity = Number(res.data.account_equity).toFixed(2) + // res.data.usable_balance = (res.data.usable_balance).toFixed(2) + res.data.account_equity = Math.floor(Number(res.data.account_equity) * 100) / 100; + res.data.usable_balance = Math.floor(res.data.usable_balance * 100) / 100; this.accountInfo = res.data; if (!boo) { // this.form.lever_rate = res.data.lever_rate;