|
@@ -6,7 +6,7 @@
|
|
|
* @FilePath: /MedicalWisdomCheckSys/src/app.tsx
|
|
|
*/
|
|
|
import type { Settings as LayoutSettings } from '@ant-design/pro-layout';
|
|
|
-import { RunTimeLayoutConfig } from 'umi';
|
|
|
+import { RunTimeLayoutConfig, useModel } from 'umi';
|
|
|
import { history, Link } from 'umi';
|
|
|
import { notification, Modal } from 'antd';
|
|
|
// import 'yet-another-abortcontroller-polyfill'
|
|
@@ -283,7 +283,9 @@ const mappingIcon = (menuData: menuDataItemType[]) => {
|
|
|
// ProLayout 支持的api https://procomponents.ant.design/components/layout
|
|
|
export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) => {
|
|
|
|
|
|
-
|
|
|
+ const isShowMenu = localStorage.getItem('isChildShowMenu');
|
|
|
+ console.log({isShowMenu})
|
|
|
+
|
|
|
return {
|
|
|
logo: initialState?.logo,
|
|
|
rightContentRender: () => <RightContent />,
|
|
@@ -294,6 +296,7 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
|
|
|
// history.push('/reports/a?w=1')
|
|
|
// }
|
|
|
},
|
|
|
+ siderWidth:isShowMenu == 'true'?220:0,
|
|
|
menu: {
|
|
|
params: {
|
|
|
currentUser: initialState?.currentUser
|