This commit is contained in:
lcw
2025-12-05 21:36:34 +08:00
parent 64ab9fc44c
commit b39387c4ed
97 changed files with 3342 additions and 298 deletions

View File

@ -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);
};

View File

@ -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'
}
}