From c5b88d73c22905980064058e6c9fa0b953706915 Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Tue, 13 Jun 2023 08:18:37 +0800 Subject: [PATCH] Fix: trust color --- src/modules/[chain]/index.vue | 12 ++++++++---- src/modules/[chain]/indexStore.ts | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/modules/[chain]/index.vue b/src/modules/[chain]/index.vue index 7c64b479..7f4094f2 100644 --- a/src/modules/[chain]/index.vue +++ b/src/modules/[chain]/index.vue @@ -12,7 +12,7 @@ import { useParamStore, } from '@/stores'; import { onMounted, ref } from 'vue'; -import { useIndexModule } from './indexStore'; +import { useIndexModule, colorMap } from './indexStore'; import { computed } from '@vue/reactivity'; import CardStatisticsVertical from '@/components/CardStatisticsVertical.vue'; @@ -99,6 +99,10 @@ const color = computed(() => { function updateState() { walletStore.loadMyAsset() } + +function trustColor(v: string) { + return `text-${colorMap(v)}` +}