仪表盘
版本库
文件存储
活动
搜索
登录
main
/
herb-ui
干燥机配套车间生产管理系统/云平台前端
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
升级字体图标库版本
bsw215583320
2023-08-07
f99258bbb1cc15dc117f7ddd3b1af9d50cb7b2f7
[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);
}