export Layout

This commit is contained in:
liaoxuezhi 2019-08-29 12:01:24 +08:00
parent 719dabd0c9
commit 32e364e997
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ interface LayoutProps {
bodyClassName?: string; bodyClassName?: string;
} }
function Layout({ export function Layout({
header, header,
aside, aside,
asideClassName, asideClassName,
@ -66,7 +66,7 @@ function Layout({
React.useEffect(() => { React.useEffect(() => {
bodyClassName && document.body.classList.add(bodyClassName); bodyClassName && document.body.classList.add(bodyClassName);
return () => { return () => {
bodyClassName && document.body.classList.remove(bodyClassName) bodyClassName && document.body.classList.remove(bodyClassName)
}; };