fix: update variables font size

This commit is contained in:
sroxck 2024-11-08 10:29:38 +08:00
parent ab4b26c894
commit 58cd9905d2
2 changed files with 9 additions and 0 deletions

1
deploy.sh Normal file
View File

@ -0,0 +1 @@
scp -r ./apps/web-ele/dist Administrator@47.111.224.22:C:\\web-ui

View File

@ -10,6 +10,14 @@ import { BUILT_IN_THEME_PRESETS } from './constants';
* @param preferences -
*/
function updateCSSVariables(preferences: Preferences) {
document.documentElement.style.setProperty(
'--global-size',
`${preferences.theme.size || 100}%`,
);
document.documentElement.style.setProperty(
'--radius',
`${preferences.theme.menuSize || 14}px`,
);
// 当修改到颜色变量时,更新 css 变量
const root = document.documentElement;
if (!root) {