diff --git a/packages/semi-scss-compile/src/utils/writeFile.ts b/packages/semi-scss-compile/src/utils/writeFile.ts index 0b995cc4db..348327406d 100644 --- a/packages/semi-scss-compile/src/utils/writeFile.ts +++ b/packages/semi-scss-compile/src/utils/writeFile.ts @@ -84,7 +84,7 @@ const preProcessScssMap = (scssMapOrigin: ReturnType) => } allCustomRaw+= themeLocalRaw || ""; allCustomRaw+="\n"; - allCustomRaw+=customScssRaw+"\n"; + allCustomRaw+=`body:not(:not(body)){${customScssRaw}};`+"\n"; scssMap.theme['index.scss'] += '\n'+allCustomRaw; }