shuishen
2024-01-29 4054e99785ca3f36fbf99caae170a83b5da8ee43
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];
    }
  }
};