|
@@ -2,6 +2,7 @@ import { defineStore } from "pinia";
|
|
|
import Web3 from "web3";
|
|
|
import CryptoJS from "crypto-js";
|
|
|
import { cloneDeep } from "lodash";
|
|
|
+import { sysLogin } from "@/common/login.js";
|
|
|
|
|
|
|
|
|
export const useWalletStore = defineStore("useWalletStore", {
|
|
@@ -90,8 +91,8 @@ export const useWalletStore = defineStore("useWalletStore", {
|
|
|
this.isAuthenticated = true;
|
|
|
this.chainId = `${await web3.eth.getChainId()}n`;
|
|
|
this.id = `${this.account}@${this.accountName}`
|
|
|
- await this.getBalance();
|
|
|
this.addWallet()
|
|
|
+ await sysLogin(this.account)
|
|
|
return {
|
|
|
address: account.address,
|
|
|
chainId: this.chainId,
|