From 9ff3b3220ea29c4874c553ab65864b273f16f6bc Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Wed, 27 Apr 2022 21:57:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0metamask=E6=B5=8F=E8=A7=88?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chain/blockchain.ts | 6 +++++- src/components/core/ChainModal.vue | 12 ++++++++++-- src/components/index/DesktopFooter.vue | 4 ---- src/components/layout/BaseFooter.vue | 3 +++ src/configs/config_chain.ts | 2 +- src/views/mobile/Gameplay.vue | 5 +++-- src/views/mobile/Index.vue | 4 +++- src/views/mobile/NFT.vue | 4 +++- src/views/mobile/Roadmap.vue | 4 +++- src/views/mobile/Team.vue | 4 +++- src/views/mobile/Tokenomic.vue | 4 +++- 11 files changed, 37 insertions(+), 15 deletions(-) diff --git a/src/chain/blockchain.ts b/src/chain/blockchain.ts index 442e281..de42e76 100644 --- a/src/chain/blockchain.ts +++ b/src/chain/blockchain.ts @@ -148,7 +148,11 @@ export class Blockchain { public async connect(isManual = false) { if (isMobile()) { - this.walletType = 2 + if (hasMetamask()) { + this.walletType = 1 + } else { + this.walletType = 2 + } } else { if (hasMetamask()) { if (isManual && !this.walletType) { diff --git a/src/components/core/ChainModal.vue b/src/components/core/ChainModal.vue index c2e30cf..68f3417 100644 --- a/src/components/core/ChainModal.vue +++ b/src/components/core/ChainModal.vue @@ -1,7 +1,7 @@