theme: 优化

This commit is contained in:
qinhaoyan 2023-03-17 11:09:16 +08:00 committed by hongyang03
parent 89fbbff6bb
commit 4b2635abbc

View File

@ -255,7 +255,9 @@ export function insertCustomStyle(
return; return;
} }
const {value} = formatStyle(themeCss, classNames, id, defaultData); const {value} = formatStyle(themeCss, classNames, id, defaultData);
insertStyle(value, id?.replace('u:', '') || uuid()); if (value) {
insertStyle(value, id?.replace('u:', '') || uuid());
}
} }
/** /**