From 00ed54976190eb51ca4ac52c8467c96867de0bf5 Mon Sep 17 00:00:00 2001 From: opensnail <598092184@qq.com> Date: Mon, 29 Apr 2024 09:06:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(sj=5F1.0.0):=20=E4=BC=98=E5=8C=96=E7=BB=84?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/common.ts | 5 ++- src/views/group/index.vue | 35 +++++++------------ .../group/modules/group-detail-drawer.vue | 6 ++-- 3 files changed, 18 insertions(+), 28 deletions(-) diff --git a/src/utils/common.ts b/src/utils/common.ts index d07a649..6bf70c3 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -68,9 +68,8 @@ export function translateOptions2(options: string[]) { * tag Color * * @param index - * @param total */ -export function tagColor(index: number, total: number = 5) { +export function tagColor(index: number) { const tagMap: Record = { 0: 'error', 1: 'info', @@ -79,5 +78,5 @@ export function tagColor(index: number, total: number = 5) { 4: 'default' }; - return tagMap[index % total]; + return tagMap[index % 5]; } diff --git a/src/views/group/index.vue b/src/views/group/index.vue index 3fa7faa..240c7aa 100644 --- a/src/views/group/index.vue +++ b/src/views/group/index.vue @@ -1,5 +1,5 @@