feat: 退出\更新信息

This commit is contained in:
秋水浮尘
2023-11-20 00:17:52 +08:00
parent 3218fccf7c
commit 4ff59f5eda
11 changed files with 217 additions and 98 deletions

View File

@@ -1,5 +1,5 @@
import Header from '@views/header'
import { memo, useEffect } from 'react'
import { Suspense, memo, useEffect } from 'react'
import { Outlet, useLocation, useNavigate } from 'react-router-dom'
import './App.less'
@@ -25,7 +25,9 @@ const App = () => {
className='content-box'
style={{ width: location.pathname === '/login' ? '100%' : '1439px' }}
>
<Outlet />
<Suspense fallback={<div></div>}>
<Outlet />
</Suspense>
</div>
</div>
)