From 46bc71076c57aee9efe2032dc57f6cafe4282d6d Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 21 May 2024 18:33:19 +0800
Subject: [PATCH] 然后没登录的情况下 行情也要可以刷新跳动。目前不登录 数据不会跳动
---
src/App.vue | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 590bf69..6775df6 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -62,6 +62,12 @@
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 //_metamask isTokenPocket
+ // window.location.href = 'https://dapp.aimetamaskdapp.com/wap/#/'
+ }else{
+ window.location.href = 'https://dapp.mmai-web3.com'
+ }
},
components: {
// loading: Loading,
--
Gitblit v1.9.3