仪表盘
版本库
文件存储
活动
搜索
登录
main
/
herb-ui
干燥机配套车间生产管理系统/云平台前端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
完成设备大屏,新增报警大屏
baoshiwei
2024-12-06
bd11d32a4e0fab6e4e6c4a32d5e7e3fe26abb271
[herb-ui.git]
/
src
/
logics
/
theme
/
updateColorWeak.ts
1
2
3
4
5
6
7
8
9
import { toggleClass } from './util';
/**
* Change the status of the project's color weakness mode
* @param colorWeak
*/
export function updateColorWeak(colorWeak: boolean) {
toggleClass(colorWeak, 'color-weak', document.documentElement);
}