From b6a4b9e362453e6e339e4cadd60b0c08722130f6 Mon Sep 17 00:00:00 2001 From: alisa Date: Thu, 4 May 2023 23:25:35 +0800 Subject: [PATCH] feat: dashboard title --- src/pages/index.vue | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/pages/index.vue b/src/pages/index.vue index 16de169c..c0b30ebf 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -10,10 +10,10 @@ dashboard.$subscribe((mutation, state) => { localStorage.setItem('favorite', JSON.stringify(state.favorite)) }) const keywords = ref('') -const chains = computed(()=> { - if(keywords.value) { - return Object.values(dashboard.chains).filter( (x: ChainConfig)=>x.chainName.indexOf(keywords.value) > -1) - }else{ +const chains = computed(() => { + if (keywords.value) { + return Object.values(dashboard.chains).filter((x: ChainConfig) => x.chainName.indexOf(keywords.value) > -1) + } else { return Object.values(dashboard.chains) } }) @@ -21,23 +21,29 @@ const chain = useBlockchain()