|
@@ -1,7 +1,7 @@
|
|
|
/*
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-09-03 14:28:27
|
|
|
- * @LastEditors: Please set LastEditors
|
|
|
+ * @LastEditors: code4eat awesomedema@gmail.com
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /MedicalWisdomCheckSys/src/app.tsx
|
|
|
*/
|
|
@@ -286,7 +286,6 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
|
|
|
logo: initialState?.logo,
|
|
|
rightContentRender: () => <RightContent />,
|
|
|
disableContentMargin: false,
|
|
|
- // onPageChange: (location:any) => {console.log({location}) },
|
|
|
menuProps:{
|
|
|
// onClick:({ key, keyPath, domEvent })=>{
|
|
|
// console.log({ key, keyPath, domEvent});
|
|
@@ -308,11 +307,9 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
|
|
|
}
|
|
|
|
|
|
if (currentUser) {
|
|
|
-
|
|
|
const localMasterData = localStorage.getItem('initialState');
|
|
|
|
|
|
if (localMasterData) {
|
|
|
-
|
|
|
const { openedSysLists } = JSON.parse(localMasterData);
|
|
|
const currentSys = openedSysLists.filter((t:any) => t.name == '智慧查检');
|
|
|
const systemId = currentSys.length > 0 ? currentSys[0].id : 0;
|
|
@@ -349,7 +346,7 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
|
|
|
};
|
|
|
|
|
|
const _menu = getVFromTree(data, 'contentType');
|
|
|
-
|
|
|
+
|
|
|
setInitialState((t) => ({ ...t, spacicalPageParamsType: _menu }));
|
|
|
|
|
|
/////////////////////////////--------临时处理----------///////////////////////////////////////////////
|