From 022e0d3437502f5d8be18595c351194da2f7ff95 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 20 May 2023 21:36:32 +0800 Subject: [PATCH] fix loading issue --- src/modules/[chain]/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 0aee22c5..0ae51fef 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -41,11 +41,10 @@ onMounted(() => { }); const ticker = computed(() => store.coinInfo.tickers[store.tickerIndex]); +const currName = ref("") blockchain.$subscribe((m, s) => { - if ( - !Array.isArray(m.events) && - ['chainName', 'endpoint'].includes(m.events?.key || "") - ) { + if (s.chainName !== currName.value) { + currName.value = s.chainName store.loadDashboard(); walletStore.loadMyAsset(); paramStore.handleAbciInfo() @@ -335,13 +334,13 @@ const color = computed(() => {