提交 7791ce76 编写于 作者: D DCloud_LXH

fix: filterPrefersColorScheme conditions

上级 18dafdb6
......@@ -84,7 +84,7 @@ function walkDecls(rpx2unit: ReturnType<typeof createRpx2Unit>) {
}
function filterPrefersColorScheme(root: Root) {
if (process.env.VUE_APP_DARK_MODE === 'true') {
if (process.env.VUE_APP_DARK_MODE !== 'true') {
const filePath = root.source?.input.file
if (filePath && filePath.includes('@dcloudio')) {
root.walkAtRules((rule) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册