From e125483ab03b8bb0f1a70e4b12c0291f7b6d30b1 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Thu, 21 Mar 2024 14:59:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=92=B1=E5=8C=85=E4=B8=AD?= =?UTF-8?q?=E5=B8=81=E7=9A=84=E6=B5=81=E6=B0=B4=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E8=B7=9F=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/vPaging.vue | 7 +++++++ pages/assets/bill.vue | 12 ++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/layout/vPaging.vue b/layout/vPaging.vue index 337f76f..ac3a5e4 100644 --- a/layout/vPaging.vue +++ b/layout/vPaging.vue @@ -58,6 +58,13 @@ export default { }); }, }, + watch: { + '$route' (to, from) { + if(to.query.coin_name){ + this.getList(); + } + } + }, created() {}, }; \ No newline at end of file diff --git a/pages/assets/bill.vue b/pages/assets/bill.vue index ca5b6cc..c80f7be 100644 --- a/pages/assets/bill.vue +++ b/pages/assets/bill.vue @@ -52,7 +52,7 @@ export default { appWithdrawalRecord: Wallet.appWithdrawalRecord, appTransferRecord: Wallet.appTransferRecord, getWalletLogs: Wallet.getWalletLogs, - query:{} + query:{}, }; }, computed: { @@ -68,6 +68,14 @@ export default { }, ...mapGetters(['themeStyle']) }, + watch: { + '$route' (to, from) { + if(to.query.coin_name){ + this.query.coin_name = to.query.coin_name; + this.appTokenAssets(); + } + } + }, methods: { omitTo:math.omitTo, parseTime: date.parseTime, @@ -82,7 +90,7 @@ export default { }, }, onLoad(query) { - this.query=query + this.query=query; this.appTokenAssets(); }, };