From 9b2bee1321e99dfce7fe8442f750b1300391e841 Mon Sep 17 00:00:00 2001
From: jhzh <1628036192@qq.com>
Date: Fri, 04 Apr 2025 21:50:07 +0800
Subject: [PATCH] 1

---
 src/page/transfer.vue |   31 ++++++++++++++++++-------------
 1 files changed, 18 insertions(+), 13 deletions(-)

diff --git a/src/page/transfer.vue b/src/page/transfer.vue
index 2ed1384..935ce35 100644
--- a/src/page/transfer.vue
+++ b/src/page/transfer.vue
@@ -87,8 +87,24 @@
 				buttitle:this.$t('交易')+this.$t('账户'),
 			};
 		},
+		mounted(){
+			this.getwallet()
+		},
 		created() {
 			this.getwallet()
+		},
+		beforeRouteUpdate(to, from, next) {
+		  // 路由更新时调用
+		  next(vm => {
+			  this.getwallet()
+		      // 这里你可以访问到组件实例 `vm`,可以用来调用一些方法
+		    });
+		},
+		watch: {
+		  '$route'(to, from) {
+		    // 路由变化时手动触发操作
+		    this.getwallet()
+		  }
 		},
 		methods: {
 			clickall(){
@@ -162,30 +178,19 @@
 					newcurrency = 'usdc'
 				}
 				this.$router.push({
-				  path: "/Fundverification",
+				  path: "/withdraw/securityVerification_zh",
 				  query: {
 				    currency: newcurrency,
 				    fromTo: this.toptitle==(this.$t('资金')+this.$t('账户'))?'1':'2',
 				    amount: this.amount
 				  },
 				});
-				// return
-				// var data = {
-				// 	currency: newcurrency,
-				// 	fromTo: this.toptitle==(this.$t('资金')+this.$t('账户'))?'1':'2',
-				// 	amount: this.amount
-				// }
-				// await walletGrthertransfer(data).then((res) => {
-				// 	console.log(res);
-				// });
 			},
 			async getwallet() {
 				await walletGrther().then((data) => {
-					console.log(data.id);
-					this.usdcMoney = err.usdtMoney
+					this.usdcMoney = data.usdtMoney
 				}).catch((err)=>{
 					console.log(err.id);
-					this.usdcMoney = err.usdtMoney
 				});
 			},
 			onClickLeft() {

--
Gitblit v1.9.3