lcw
This commit is contained in:
@ -26,6 +26,7 @@ export const generateNewStyle = async (parimaryColor) => {
|
||||
*/
|
||||
export const writeNewStyle = (newStyle) => {
|
||||
const style = document.createElement('style');
|
||||
style.id = 'dynamic-theme-style'; // 添加唯一标识
|
||||
style.innerText = newStyle;
|
||||
document.head.appendChild(style);
|
||||
};
|
||||
|
||||
@ -362,3 +362,15 @@ export function getUUid() {
|
||||
let uuid = list.join("");
|
||||
return uuid;
|
||||
}
|
||||
// 预警等级颜色
|
||||
export const bqYs = (val) => {
|
||||
if (val == '01') {
|
||||
return '#ff0202'
|
||||
} else if (val == '02') {
|
||||
return '#ff8c00'
|
||||
} else if (val == '03') {
|
||||
return '#ffd208ff'
|
||||
} else if (val == '04') {
|
||||
return '#0000ff'
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user