src/pages/index/index.vue
@@ -118,7 +118,7 @@ infuraId: '27e484dcd9e3efcfd25a83a78777cdf1', rpc: { 1: "https://mainnet.infura.io/v3/f54a5887a3894ebb9425920701a97fe0", }, } }); await provider.enable(); provider.on("accountsChanged", (accounts) => { @@ -250,6 +250,8 @@ await window.ethereum.enable(); const accounts = await ethereum.request({ method: 'eth_accounts' }); address = accounts[0]; console.log('dapp环境噢') console.log(accounts) }else if(window.tronWeb){ address = window.tronWeb.defaultAddress.base58; }