diff --git a/client/web/plugins/com.msgbyte.biggerfont/src/index.tsx b/client/web/plugins/com.msgbyte.biggerfont/src/index.tsx index 5000e37a..7e44be04 100644 --- a/client/web/plugins/com.msgbyte.biggerfont/src/index.tsx +++ b/client/web/plugins/com.msgbyte.biggerfont/src/index.tsx @@ -37,7 +37,7 @@ function updateFontsize(settings: any) { if (typeof settings === 'object' && typeof fontSize === 'string') { if (fontSize === '') { // 清除字号设置 - document.documentElement.style.fontSize = undefined; + document.documentElement.style.fontSize = ''; } else if (fontSize === 'md') { document.documentElement.style.fontSize = '18px'; } else if (fontSize === 'lg') {