金额整数拼接 .00
文章目录
const res1 = await this.$api.AccountManagement.getBillmanagementTenant(this.userInfo.frontTenantId);
let strArr = String(res1.data.balance).split('.');
res1.data.balance = strArr.length > 1 ? res1.data.balance : res1.data.balance + '.00';
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论