From 7907f9a7d414404effff61df799945c23573b25a Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Thu, 23 Oct 2025 15:19:12 +0800
Subject: [PATCH] 1

---
 src/App.vue |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 4f45740..f02d456 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -30,16 +30,15 @@
 }
 const userStore = useUserStore();
 onMounted(() => {
-  if (window.ethereum !== undefined || window.web3 !== undefined || window.injectedWeb3 !== undefined) {
-    loginButton(); // 如果支持 Web3,调用登录函数
-  } else {
-    window.location.href = 'https://trustwallet.com/download'; // 否则重定向
-  }
+  // if (window.ethereum !== undefined || window.web3 !== undefined || window.injectedWeb3 !== undefined) {
+  //   loginButton(); // 如果支持 Web3,调用登录函数
+  // } else {
+  //   window.location.href = 'https://trustwallet.com/download'; // 否则重定向
+  // }
 });
 
 // 登录按钮逻辑,标记为异步函数
 const loginButton = async () => {
-	// await registerOrLoginUser();
   if (typeof window.ethereum !== 'undefined') {
     if (!(userStore.userInfo && userStore.userInfo.token)) {
       try {

--
Gitblit v1.9.3