fix: 修复外观样式清空不生效问题 (#8610)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2023-11-03 12:55:34 +08:00 committed by GitHub
parent ca8710ef79
commit 50c31f6a5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,12 +252,8 @@ export function insertCustomStyle(
}
let {value} = formatStyle(themeCss, classNames, id, defaultData);
if (value) {
value = customStyleClassPrefix
? `${customStyleClassPrefix} ${value}`
: value;
insertStyle(value, id.replace('u:', ''), doc);
}
value = customStyleClassPrefix ? `${customStyleClassPrefix} ${value}` : value;
insertStyle(value, id.replace('u:', ''), doc);
}
/**