liming 3 долоо хоног өмнө
parent
commit
9c4204f5cd

+ 1 - 1
src/stores/modules/walletStore.js

@@ -89,6 +89,7 @@ export const useWalletStore = defineStore("useWalletStore", {
         this.account = account.address;
         this.account = account.address;
         this.isAuthenticated = true;
         this.isAuthenticated = true;
         this.chainId =  `${await web3.eth.getChainId()}n`;
         this.chainId =  `${await web3.eth.getChainId()}n`;
+        this.id = `${this.account}@${this.accountName}`
         await this.getBalance(); 
         await this.getBalance(); 
         this.addWallet()
         this.addWallet()
         return {
         return {
@@ -108,7 +109,6 @@ export const useWalletStore = defineStore("useWalletStore", {
 
 
     // 添加钱包
     // 添加钱包
     addWallet() { 
     addWallet() { 
-      this.id = `${this.account}@${this.accountName}`
       const data = cloneDeep(this.$state)
       const data = cloneDeep(this.$state)
       Reflect.deleteProperty(data, "walletList");
       Reflect.deleteProperty(data, "walletList");
       if(this.walletList.length = 0) {
       if(this.walletList.length = 0) {