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;
}
function Layout({
export function Layout({
header,
aside,
asideClassName,
@ -66,7 +66,7 @@ function Layout({
React.useEffect(() => {
bodyClassName && document.body.classList.add(bodyClassName);
return () => {
bodyClassName && document.body.classList.remove(bodyClassName)
};