diff --git a/src/app.tsx b/src/app.tsx index f037d946..27d41419 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -78,6 +78,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState }) => { menuHeaderRender: undefined, // 自定义 403 页面 // unAccessible:
unAccessible
, + // 增加一个 loading 的状态 + // childrenRender: (children) => { + // if (initialState.loading) return ; + // return children; + // }, ...initialState?.settings, }; };