From 52693b6065866fd1178fa560b564ebc8b93a9bc6 Mon Sep 17 00:00:00 2001 From: "Dennisic\\Chen" Date: Thu, 7 Dec 2023 15:32:11 +0800 Subject: [PATCH] feat: hide metamask login --- src/components/Wallets.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Wallets.vue b/src/components/Wallets.vue index 2facadc8..7ecee00a 100644 --- a/src/components/Wallets.vue +++ b/src/components/Wallets.vue @@ -116,14 +116,14 @@ async function autoConnectSavedWallet(): Promise { 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 () => {