Skip to content

Commit

Permalink
feat: hide metamask login
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisic committed Dec 7, 2023
1 parent aae35b6 commit 52693b6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/components/Wallets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ async function autoConnectSavedWallet(): Promise<WalletState[] | null> {
onBeforeMount(async () => {
console.log('是否加载了钱包组件~~~~')
// 进入页面即要求连接钱包
const walletStatesOrNull = await autoConnectSavedWallet()
if (walletStatesOrNull !== null) {
walletStates = walletStatesOrNull
}
if (walletStates !== undefined && walletStates[0]) {
setWalletAccount(walletStates[0]);
}
// // 进入页面即要求连接钱包
// const walletStatesOrNull = await autoConnectSavedWallet()
// if (walletStatesOrNull !== null) {
// walletStates = walletStatesOrNull
// }
// if (walletStates !== undefined && walletStates[0]) {
// setWalletAccount(walletStates[0]);
// }
});
const onClickConnect = async () => {
Expand Down

0 comments on commit 52693b6

Please sign in to comment.