|
|
|
@@ -10,6 +10,7 @@ import defaultSettings from '../config/defaultSettings'; |
|
|
|
import '../public/fonts/font.css'; |
|
|
|
import { getAccessToken } from './access'; |
|
|
|
import ErrorBoundary from './components/ErrorBoundary'; |
|
|
|
import PageContainer from './components/PageContainer'; |
|
|
|
import './dayjsConfig'; |
|
|
|
import { removeAllPageCacheState } from './hooks/useCacheState'; |
|
|
|
import { globalGetSeverTime } from './hooks/useServerTime'; |
|
|
|
@@ -87,12 +88,7 @@ export const layout: RuntimeConfig['layout'] = ({ initialState }) => { |
|
|
|
childrenRender: (children) => { |
|
|
|
// 增加一个 loading 的状态 |
|
|
|
// if (initialState?.loading) return <PageLoading />; |
|
|
|
return ( |
|
|
|
<div className="kf-page-container"> |
|
|
|
{/* <RightContent></RightContent> */} |
|
|
|
<div className="kf-page-container__content">{children}</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
return <PageContainer>{children}</PageContainer>; |
|
|
|
}, |
|
|
|
collapsedButtonRender: false, |
|
|
|
collapsed: initialState?.collapsed, |
|
|
|
|