Skip to content

Commit 647adeb

Browse files
nullptr-zhy
authored andcommitted
fix(doc): 文档主题色 BUG 修复
1 parent 43f40d5 commit 647adeb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

website/src/component/Preview/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ const Markdown = styled(MarkdownPreview)`
2828
const getBooleanValue = (param, field, defaultValue) => {
2929
if (Reflect.has(param, field)) {
3030
const newValue = Reflect.get(param, field);
31-
if (newValue === 'true') {
32-
return true;
33-
}
34-
if (newValue === 'false') {
35-
return false;
36-
}
31+
return newValue === 'true';
3732
}
3833
return defaultValue;
3934
};

0 commit comments

Comments
 (0)