Skip to content

Commit

Permalink
fix:修复布局默认值造成页面报错
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLxy committed Nov 10, 2023
1 parent d273694 commit abf23f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/basic-layouts/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export * from './utils';

const BasicLayouts = (props: BasicLayoutsProps) => {
const { theme = 'light', token = undefined } = props;
const layout = props.layout;
const layout = props.layout || LayoutModel.MIX;
const render = useMemo(() => {
if (layout === LayoutModel.TOPLEFT) {
return (
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-layouts/src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface BasicLayoutsProps {
* 刷新后是否展开菜单
* @default false
* */
defultOpenMenus?:boolean;
defultOpenMenus?: boolean;
/**
* layout 的菜单模式
* @default MIX
Expand Down
5 changes: 4 additions & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@
"antdp",
"umi"
],
"devDependencies": {
"webpack": "5.89.0"
},
"dependencies": {
"@ant-design/icons": "5.1.4",
"@babel/runtime": "~7.20.1",
"@umijs/max": "~4.0.47",
"umi-plugin-antd-icon-config": "3.0.1"
}
}
}

0 comments on commit abf23f9

Please sign in to comment.