fix: 修复放大字体插件默认状态不生效的bug

pull/90/head
moonrailgun 2 years ago
parent e46d0bfea3
commit f33a978179

@ -37,7 +37,7 @@ function updateFontsize(settings: any) {
if (typeof settings === 'object' && typeof fontSize === 'string') { if (typeof settings === 'object' && typeof fontSize === 'string') {
if (fontSize === '') { if (fontSize === '') {
// 清除字号设置 // 清除字号设置
document.documentElement.style.fontSize = undefined; document.documentElement.style.fontSize = '';
} else if (fontSize === 'md') { } else if (fontSize === 'md') {
document.documentElement.style.fontSize = '18px'; document.documentElement.style.fontSize = '18px';
} else if (fontSize === 'lg') { } else if (fontSize === 'lg') {

Loading…
Cancel
Save