gx
queenwuli
2022-03-25 7d407413b4cb48384710ba40f8aa698584edfff1
src/pages/index/index.vue
@@ -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;
      }