This commit is contained in:
francis-fh
2026-06-04 23:21:52 +08:00
parent 134c1ecece
commit e467fcc2cf
3 changed files with 34 additions and 4 deletions

View File

@@ -102,6 +102,9 @@ export async function getInitialState(): Promise<{
// ProLayout 支持的api https://procomponents.ant.design/components/layout
export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) => {
return {
// 嵌入第三方平台:隐藏 ProLayout 顶栏(系统名、用户头像等)
headerRender: false,
menuHeaderRender: false,
// actionsRender: () => [<Question key="doc" />, <SelectLang key="SelectLang" />],
actionsRender: () => [<SelectLang key="SelectLang" />],
avatarProps: {
@@ -174,7 +177,6 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
// </Link>,
// ]
// : [],
menuHeaderRender: undefined,
// 自定义 403 页面
// unAccessible: <div>unAccessible</div>,
// 增加一个 loading 的状态