lin
2024-04-27 6b2aefa53eab6a25e4bda5d2192af1045d8b87c2
src/util/util.js
@@ -458,3 +458,18 @@
  return null; // 如果找不到目标id,返回null
};
//转换标签颜色
export const setLabelColor = (color) => {
  let obj = {
    red: "#EA1F1F",
    yellow: "#FFB42B",
    green: "#30D17C",
  };
  for (let i in obj) {
    if (color == i) {
      return obj[i];
    }
  }
};