From d0ca90efca1eb32eca5362371030f90b6a8e4b28 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Thu, 10 Mar 2022 19:57:01 +0800 Subject: [PATCH] change name to chain_id --- src/layouts/components/Navbar.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layouts/components/Navbar.vue b/src/layouts/components/Navbar.vue index f7fd0ca7..34291170 100644 --- a/src/layouts/components/Navbar.vue +++ b/src/layouts/components/Navbar.vue @@ -48,8 +48,8 @@ /> -
- {{ selected_chain.chain_name }} +
+ {{ chainid || selected_chain.chain_name }}
{{ currentApi }} ({{ selected_chain.sdk_version || '-' }}) @@ -199,6 +199,7 @@ export default { variant: 'success', tips: 'Synced', index: 0, + chainid: '', } }, computed: { @@ -242,6 +243,7 @@ export default { this.index = Number(s) this.$store.commit('setHeight', 0) this.$http.getLatestBlock().then(block => { + this.chainid = block.block.header.chain_id this.$store.commit('setHeight', Number(block.block.header.height)) if (timeIn(block.block.header.time, 1, 'm')) { this.variant = 'danger'