From 2a61dad694bad8ddcea768ac973cc0c2339a54cc Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Mon, 06 May 2024 14:46:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
src/util/util.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/util/util.js b/src/util/util.js
index 7510d0a..ccf5261 100644
--- a/src/util/util.js
+++ b/src/util/util.js
@@ -473,3 +473,19 @@
}
}
};
+
+
+//转换房屋标签颜色
+export const setHouseLabelColor = (color) => {
+ let obj = {
+ blue: "#4397F7",
+ yellow: "#FFB42B",
+ green: "#30D17C",
+ };
+
+ for (let i in obj) {
+ if (color == i) {
+ return obj[i];
+ }
+ }
+};
--
Gitblit v1.9.3