From 10d76c273b34cec70e62f8dd7a2e2cd98fac1ed3 Mon Sep 17 00:00:00 2001 From: vee <897831508@qq.com> Date: Sat, 13 Nov 2021 22:34:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=B1=E5=8C=85=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/WalletUtil.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/WalletUtil.js b/utils/WalletUtil.js index 2db6b8d..cb8b5db 100644 --- a/utils/WalletUtil.js +++ b/utils/WalletUtil.js @@ -78,6 +78,7 @@ let WalletUtil = { let wallet = walletInfo.BTC[0]; uni.setStorageSync('walletInfo', walletInfo); uni.setStorageSync('wallet', wallet); + this.updateBalance(); }, //修改钱包名称 updateWalletName: function(type, address, name) { @@ -129,6 +130,7 @@ let WalletUtil = { console.log(walletInfo, 1111111) uni.setStorageSync('walletInfo', walletInfo); uni.setStorageSync('wallet', wallet); + this.updateBalance(); }, //私钥新建 privateKeyEstablishWallet: function(type, privateKey, password) { @@ -154,6 +156,7 @@ let WalletUtil = { walletInfo.push(wallet); uni.setStorageSync('walletInfo', walletInfo); uni.setStorageSync('wallet', wallet); + this.updateBalance(); }, //获取钱包列表 getWalletList: function(type) {