From ef51ae09decb4e016a849d8a5d96be7f44dafc4f Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Wed, 17 Jan 2024 19:28:20 +0800
Subject: [PATCH] 修复问题
---
common/common.js | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/common/common.js b/common/common.js
index 8429715..a3b6d85 100644
--- a/common/common.js
+++ b/common/common.js
@@ -65,4 +65,18 @@
arr.push(i.name);
}
return arr.join(",")
+}
+
+//转换标签颜色
+export const setLabelColor = (color) => {
+ let obj = {
+ 'red': '#EA1F1F',
+ 'yellow': '#FFB42B',
+ 'green': '#30D17C'
+ }
+ for (let i in obj) {
+ if (color == i) {
+ return obj[i]
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.9.3