From 9d11a290066864e13eceae4aa33e60d792b92770 Mon Sep 17 00:00:00 2001 From: Zhiting Lin Date: Tue, 2 Jun 2020 10:31:46 +0800 Subject: [PATCH] update assets fall back --- src/views/home.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/home.vue b/src/views/home.vue index c20319f..248734b 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -234,19 +234,19 @@
{{ itemBalance(asset) }}
{{ formatCurrency(asset[ currency ]) }}
-
+
- {{asset.symbol}} + {{asset.asset.symbol}}
-
{{asset.name}}
+
{{asset.asset.name}}
Asset
-
{{shortAddress(asset.asset)}}
+
{{shortAddress(asset.asset.assetId)}}
@@ -305,7 +305,7 @@ export default { symbol: "BTM", } , - balance: 0, + availableBalance: 0, decimals: 8, inBtc: "0", inCny: "0", @@ -427,7 +427,7 @@ export default { bytom.accountList[objectIndex].vpAddress = accounts.vpAddress this[Actions.UPDATE_STORED_BYTOM](bytom).then(()=>{ - this.refreshBalance(this.currentAccount.guid) + this.refreshBalance(this.currentAccount.vpAddress) }) }).catch(e =>{ if(e.message == 'Error: wallet has exist'){ @@ -439,7 +439,7 @@ export default { bytom.accountList[objectIndex].vpAddress = accounts.vpAddress this[Actions.UPDATE_STORED_BYTOM](bytom).then(()=>{ - this.refreshBalance(this.currentAccount.guid) + this.refreshBalance(this.currentAccount.vpAddress) }) }) @@ -447,7 +447,7 @@ export default { }) }else{ this[Actions.UPDATE_STORED_BYTOM](bytom).then(()=>{ - this.refreshBalance(this.currentAccount.guid) + this.refreshBalance(this.currentAccount.address) }) } } -- 2.11.0