|
|
|
@ -78,6 +78,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState }) => { |
|
|
|
menuHeaderRender: undefined, |
|
|
|
// 自定义 403 页面
|
|
|
|
// unAccessible: <div>unAccessible</div>,
|
|
|
|
// 增加一个 loading 的状态
|
|
|
|
// childrenRender: (children) => {
|
|
|
|
// if (initialState.loading) return <PageLoading />;
|
|
|
|
// return children;
|
|
|
|
// },
|
|
|
|
...initialState?.settings, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|