From 304f819d3e9b2498ebdb70b99b632cda67725a52 Mon Sep 17 00:00:00 2001
From: 李 <344137771@qq.com>
Date: Sun, 31 May 2026 17:57:32 +0800
Subject: [PATCH] 1
---
src/views/cryptos/Recharge/rechargePage.vue | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/views/cryptos/Recharge/rechargePage.vue b/src/views/cryptos/Recharge/rechargePage.vue
index e21618e..5c564ff 100644
--- a/src/views/cryptos/Recharge/rechargePage.vue
+++ b/src/views/cryptos/Recharge/rechargePage.vue
@@ -134,8 +134,14 @@
}).then((res) => {
this.chainList = res;
- this.address = res[0].address;
- this.blockchain_name = res[0].blockchain_name;
+ const wantName = this.$route.query.blockchain_name;
+ const idx = wantName && res.length
+ ? res.findIndex((c) => (c.blockchain_name || '').toLowerCase() === (wantName || '').toLowerCase())
+ : -1;
+ const i = idx >= 0 ? idx : 0;
+ this.blockchainIndex = i;
+ this.address = res[i].address;
+ this.blockchain_name = res[i].blockchain_name;
this.getQRCode();
});
--
Gitblit v1.9.3