diff --git a/src/layouts/components/Container.tsx b/src/layouts/components/Container.tsx
index 85c1016..ee08f60 100644
--- a/src/layouts/components/Container.tsx
+++ b/src/layouts/components/Container.tsx
@@ -4,43 +4,47 @@ import { ELayout } from 'modules/global';
import Header from './Header';
import Footer from './Footer';
import Menu from './Menu';
+import Content from './Content';
import Style from './Content.module.less';
-const SideLayout = React.memo(({ children }: { children: React.ReactNode }) => (
+const SideLayout = React.memo(() => (
- {children}
+
));
-const TopLayout = React.memo(({ children }: { children: React.ReactNode }) => (
+const TopLayout = React.memo(() => (
- {children}
+
));
-const MixLayout = React.memo(({ children }: { children: React.ReactNode }) => (
+const MixLayout = React.memo(() => (
- {children}
+
));
+const FullPageLayout = React.memo(() => );
+
export default {
[ELayout.side]: SideLayout,
[ELayout.top]: TopLayout,
[ELayout.mix]: MixLayout,
+ [ELayout.fullPage]: FullPageLayout,
};
diff --git a/src/layouts/components/Content.tsx b/src/layouts/components/Content.tsx
index 70208bb..92bd716 100644
--- a/src/layouts/components/Content.tsx
+++ b/src/layouts/components/Content.tsx
@@ -2,40 +2,21 @@ import React from 'react';
import { Switch, Route, Redirect } from 'react-router-dom';
import { Layout } from 'tdesign-react';
import { routes } from 'configs/routes';
-import { useAppSelector } from 'modules/store';
-import { selectGlobal } from 'modules/global';
import UnAuthorized from 'pages/Result/403';
import NotFound from 'pages/Result/404';
import ServerError from 'pages/Result/500';
-import LayoutMap from './Container';
const { Content } = Layout;
export default React.memo(() => {
const home = routes.find((item) => item.isHome);
- const globalState = useAppSelector(selectGlobal);
- const Container = LayoutMap[globalState.layout];
return (
{home && }
- {routes.map((route, index) => {
- const { Component } = route;
- return route.isFullPage ? (
-
- ) : (
- (
-
-
-
- )}
- />
- );
- })}
+ {routes.map((route, index) => (
+
+ ))}
diff --git a/src/layouts/components/Menu.module.less b/src/layouts/components/Menu.module.less
index 79de88f..44ee8f0 100644
--- a/src/layouts/components/Menu.module.less
+++ b/src/layouts/components/Menu.module.less
@@ -18,6 +18,7 @@
display: flex;
justify-content: center;
align-items: center;
+ cursor: pointer;
}
.menuMiniLogo {
@@ -26,5 +27,5 @@
}
.logoFull {
- color: var(--td-text-color-primary)
+ color: var(--td-text-color-primary);
}
diff --git a/src/layouts/components/Menu.tsx b/src/layouts/components/Menu.tsx
index a27903e..16d079e 100644
--- a/src/layouts/components/Menu.tsx
+++ b/src/layouts/components/Menu.tsx
@@ -64,7 +64,6 @@ export default memo((props: IMenuProps) => {
const { version } = globalState;
const bottomText = globalState.collapsed ? version : `TDesign Starter ${version}`;
-
return (