|
@@ -1,7 +1,7 @@
|
|
/*
|
|
/*
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-09-03 14:28:27
|
|
* @Date: 2021-09-03 14:28:27
|
|
- * @LastEditTime: 2022-01-10 14:58:23
|
|
|
|
|
|
+ * @LastEditTime: 2022-02-14 17:32:17
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: /MedicalWisdomCheckSys/src/app.tsx
|
|
* @FilePath: /MedicalWisdomCheckSys/src/app.tsx
|
|
@@ -203,7 +203,6 @@ const responseInterceptors = async (response: Response, options: responseInterce
|
|
title: '抱歉,登录已过期请重新登录!',
|
|
title: '抱歉,登录已过期请重新登录!',
|
|
onOk: () => {
|
|
onOk: () => {
|
|
ifStopNextRequet = false;
|
|
ifStopNextRequet = false;
|
|
-
|
|
|
|
loginOut();
|
|
loginOut();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -293,8 +292,6 @@ const mappingIcon = (menuData:menuDataItemType[]) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
// ProLayout 支持的api https://procomponents.ant.design/components/layout
|
|
// ProLayout 支持的api https://procomponents.ant.design/components/layout
|
|
export const layout: RunTimeLayoutConfig = ({ initialState,setInitialState }) => {
|
|
export const layout: RunTimeLayoutConfig = ({ initialState,setInitialState }) => {
|
|
|
|
|
|
@@ -302,16 +299,13 @@ export const layout: RunTimeLayoutConfig = ({ initialState,setInitialState }) =>
|
|
logo:initialState?.logo,
|
|
logo:initialState?.logo,
|
|
rightContentRender: () => <RightContent />,
|
|
rightContentRender: () => <RightContent />,
|
|
disableContentMargin: false,
|
|
disableContentMargin: false,
|
|
- waterMarkProps: {
|
|
|
|
- // content: initialState?.currentUser?.name,
|
|
|
|
- },
|
|
|
|
// footerRender: () => <Footer />,
|
|
// footerRender: () => <Footer />,
|
|
onPageChange:() => {
|
|
onPageChange:() => {
|
|
- const { location } = history;
|
|
|
|
- // 如果没有登录,重定向到 login
|
|
|
|
- // if (!initialState?.currentUser && location.pathname !== loginPath) {
|
|
|
|
- // history.push(`${loginPath}?hospSign=${hospSign}`);
|
|
|
|
- // }
|
|
|
|
|
|
+ // const { location } = history;
|
|
|
|
+ // // 如果没有登录,重定向到 login
|
|
|
|
+ // // if (!initialState?.currentUser && location.pathname !== loginPath) {
|
|
|
|
+ // // history.push(`${loginPath}?hospSign=${hospSign}`);
|
|
|
|
+ // // }
|
|
},
|
|
},
|
|
menu: {
|
|
menu: {
|
|
|
|
|