Skip to content

Commit

Permalink
[新增功能](develop): update
Browse files Browse the repository at this point in the history
  • Loading branch information
hocgin committed Dec 27, 2022
1 parent 4045810 commit 6616f01
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Promise/components/PageLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ const PageLayout: React.FC<PageLayoutProps> = ({
let { runAsync, loading } = useRequest(useAction.initialValues, {
manual: true,
});
if (loading) {
return <></>;
}

let menu = {
request: (params: Record<string, any>, defaultMenuData: MenuDataItem[]) => {
let routes = route?.routes ?? [];
Expand All @@ -78,6 +74,9 @@ const PageLayout: React.FC<PageLayoutProps> = ({
);
},
};
if (loading) {
return <></>;
}
return (
<ProLayout
menu={menu}
Expand Down

0 comments on commit 6616f01

Please sign in to comment.