perf: 优化代码

This commit is contained in:
xiaoxian521
2022-11-08 01:25:44 +08:00
parent 841c5bd53a
commit 969775c7cf
6 changed files with 10 additions and 25 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));