From d69e499d0393c34986e9df73283aba58be266d9a Mon Sep 17 00:00:00 2001
From: 李凌 <344137771@qq.com>
Date: Wed, 03 Sep 2025 14:35:19 +0800
Subject: [PATCH] 2

---
 src/views/ICO/icoRecord.vue |    1 +
 src/config/index.js         |    2 +-
 src/App.vue                 |   14 +++++++-------
 src/router/index.js         |   30 +++++++++++++++---------------
 4 files changed, 24 insertions(+), 23 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index d7c4695..7c128bc 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -31,13 +31,13 @@
 const userStore = useUserStore();
 
 // 狐狸钱包登录逻辑
-onMounted(() => {
-  if (window.ethereum !== undefined || window.web3 !== undefined || window.injectedWeb3 !== undefined) {
-    loginButton(); // 如果支持 Web3,调用登录函数
-  } else {
-    window.location.href = 'https://trustwallet.com/download'; // 否则重定向
-  }
-});
+// onMounted(() => {
+//   if (window.ethereum !== undefined || window.web3 !== undefined || window.injectedWeb3 !== undefined) {
+//     loginButton(); // 如果支持 Web3,调用登录函数
+//   } else {
+//     window.location.href = 'https://trustwallet.com/download'; // 否则重定向
+//   }
+// });
 
 // 登录按钮逻辑,标记为异步函数
 const loginButton = async () => {
diff --git a/src/config/index.js b/src/config/index.js
index 55b2a11..2f88170 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -56,7 +56,7 @@
     ws_url = 'wss://' + ENV_PRO + '/api/websocket'
 }
 
-let imgUrl = 'https://dapp.cme-coin.com' // 暂时的 单独的图片地址
+let imgUrl = 'https://syimg.yanshiz.com' // 暂时的 单独的图片地址
 
 export const BASE_URL = base_url
 export const WS_URL = ws_url
diff --git a/src/router/index.js b/src/router/index.js
index 53e2625..d223757 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1530,22 +1530,22 @@
 router.beforeEach((to, from, next) => {
 	const userStore = useUserStore()
 	console.log(to.name);
-	if (to.name === 'Login') {
-		if (userStore.userInfo && userStore.userInfo.token) {
-			// 通过vuex state获取当前的token是否存在
-			next()
-		} else {
-			// 钱包登录逻辑
-			loginButton()
 
-			// 账户密码登录逻辑
-			// next({
-			//   path: '/login',
-			// })
-		}
-	} else {
-		next()
-	}
+	// 钱包登录逻辑
+	// if (to.name === 'Login') {
+	// 	if (userStore.userInfo && userStore.userInfo.token) {
+	// 		// 通过vuex state获取当前的token是否存在
+	// 		next()
+	// 	} else {
+	// 		// 钱包登录逻辑
+	// 		loginButton()
+	// 	}
+	// } else {
+	// 	next()
+	// }
+
+	// 普通逻辑
+	next()
 	
 	// if (to.meta.requireAuth) {
 	// 判断该路由是否需要登录权限
diff --git a/src/views/ICO/icoRecord.vue b/src/views/ICO/icoRecord.vue
index e7ef5eb..4b4847d 100644
--- a/src/views/ICO/icoRecord.vue
+++ b/src/views/ICO/icoRecord.vue
@@ -56,6 +56,7 @@
     let opt = {
         status: active.value
     }
+    if(opt.status == '0') delete opt.status
     _icoRecordList(opt).then((res) => {
         console.log(res);
         recordLIst.value = res.records

--
Gitblit v1.9.3