优化 代码块主题

This commit is contained in:
tianyaxiang 2025-02-02 11:31:32 +08:00
parent 695ba69208
commit 70769de9e5

View File

@ -56,7 +56,7 @@ export function StyleConfigDialog({ value, onChangeAction }: StyleConfigDialogPr
const newOptions = {
...currentOptions,
[category]: {
...currentOptions[category],
...(currentOptions[category] as object || {}),
[subcategory]: value === null ? undefined : value
}
}