perf: 优化代码

This commit is contained in:
xiaoxian521
2022-11-08 01:30:04 +08:00
parent f5b7ee5a81
commit b2081b3481
4 changed files with 6 additions and 19 deletions

View File

@@ -69,7 +69,7 @@ export function useDataThemeChange() {
return new TinyColor(color).shade(10).toString();
};
/** 设置ep主题色 */
/** 设置 `element-plus` 主题色 */
const setEpThemeColor = (color: string) => {
useEpThemeStoreHook().setEpThemeColor(color);
body.style.setProperty("--el-color-primary-active", shadeBgColor(color));