doc:修复 dark 主题背景不生效问题

This commit is contained in:
吴多益 2021-04-19 13:41:19 +08:00 committed by GitHub
parent 468dc2d6e8
commit c9ee9338b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,7 @@ export class App extends React.PureComponent<{
super(props);
this.setNavigations = this.setNavigations.bind(this);
this.setNavigationFilter = this.setNavigationFilter.bind(this);
document.querySelector('body').classList.add(this.state.theme.value);
}
componentDidUpdate(preProps, preState) {