格式化显示eth

This commit is contained in:
cebgcontract 2022-04-11 10:41:29 +08:00
parent d8fbad3083
commit a71e4ac601

View File

@ -222,7 +222,7 @@ export default class WalletPanel extends Vue {
const data = this.currencies[i]
const currentData = CONTRACT_ADDRESS[data.chain]
const eth = await this.chainManager.getBalance(currentData.eth, data.chain)
data.amount = eth
data.amount = formatPrice(eth, 18)
this.$set(this.currencies, i, data)
}
}