Skip to content

Commit fa148d4

Browse files
committed
update: use Outlet
1 parent 8b5865d commit fa148d4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/layouts/ConsoleLayout/index.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC } from 'react';
2-
// import { Outlet } from 'react-router';
3-
import KeepAliveOutlet from '@/components/KeepAliveOutlet';
2+
import { Outlet } from 'react-router';
3+
// import KeepAliveOutlet from '@/components/KeepAliveOutlet';
44
import SideMenu from '@/layouts/SideMenu';
55
import withAuth from '@/components/business/withAuth';
66
import Header from '@/layouts/Header';
@@ -10,8 +10,8 @@ import { baseModel } from '@/models/base';
1010
import { ClassName__ConsoleLayout_RightSideMain } from './consts';
1111
import Provider from './store/Provider';
1212
import Tabs from '@/layouts/Tabs';
13-
// import { motion } from 'framer-motion';
14-
// import { Animations } from './animations';
13+
import { motion } from 'framer-motion';
14+
import { Animations } from './animations';
1515
import Collapse from '../Collapse';
1616
import classNames from 'classnames';
1717
import { isMobile } from '@/utils/browser';
@@ -41,7 +41,7 @@ const ConsoleLayout: FC = () => {
4141
<Collapse />
4242
<Tabs />
4343
</div>
44-
{/* <div className="console-layout__right-side-main-wrap">
44+
<div className="console-layout__right-side-main-wrap">
4545
{refreshing ? null : (
4646
<motion.div
4747
className={ClassName__ConsoleLayout_RightSideMain}
@@ -54,10 +54,10 @@ const ConsoleLayout: FC = () => {
5454
<Outlet />
5555
</motion.div>
5656
)}
57-
</div> */}
58-
<div className={`console-layout__right-side-main-wrap ${ClassName__ConsoleLayout_RightSideMain}`}>
59-
{refreshing ? null : <KeepAliveOutlet />}
6057
</div>
58+
{/* <div className={`console-layout__right-side-main-wrap ${ClassName__ConsoleLayout_RightSideMain}`}>
59+
{refreshing ? null : <KeepAliveOutlet />}
60+
</div> */}
6161
<Footer />
6262
</div>
6363
</div>

0 commit comments

Comments
 (0)