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] } } }