修复字体设置某些字体无法应用的问题
This commit is contained in:
@@ -27,7 +27,7 @@ export default () => {
|
||||
})
|
||||
|
||||
watch(() => appSetting['common.font'], (val) => {
|
||||
document.documentElement.style.fontFamily = val
|
||||
document.documentElement.style.fontFamily = /\s/.test(val) ? `"${val}"` : val
|
||||
}, {
|
||||
immediate: true,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user