|
@@ -1,7 +1,7 @@
|
|
/*
|
|
/*
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-11-09 13:57:41
|
|
* @Date: 2021-11-09 13:57:41
|
|
- * @LastEditTime: 2021-12-20 17:45:12
|
|
|
|
|
|
+ * @LastEditTime: 2021-12-22 09:43:26
|
|
* @LastEditors: Please set LastEditors
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath: /KC-MiddlePlatform/src/app.ts
|
|
* @FilePath: /KC-MiddlePlatform/src/app.ts
|
|
@@ -10,17 +10,14 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import {
|
|
import {
|
|
PageLoading,
|
|
PageLoading,
|
|
- BasicLayoutProps,
|
|
|
|
- Settings as LayoutSettings,
|
|
|
|
} from '@ant-design/pro-layout';
|
|
} from '@ant-design/pro-layout';
|
|
-import { notification, ConfigProvider } from 'antd';
|
|
|
|
|
|
+import { notification, message } from 'antd';
|
|
import { RequestConfig, history } from 'umi';
|
|
import { RequestConfig, history } from 'umi';
|
|
|
|
+// import { createLogger } from 'redux-logger';
|
|
import type { RequestOptionsInit } from 'umi-request';
|
|
import type { RequestOptionsInit } from 'umi-request';
|
|
|
|
|
|
import { getHospSubSystemList } from '@/service/login';
|
|
import { getHospSubSystemList } from '@/service/login';
|
|
|
|
|
|
-import TopBar from '@/components/topBar/index';
|
|
|
|
-
|
|
|
|
const loginPath = '/login';
|
|
const loginPath = '/login';
|
|
|
|
|
|
let hospSign: string = ''; //医院标识
|
|
let hospSign: string = ''; //医院标识
|
|
@@ -61,7 +58,7 @@ export async function getInitialState(): Promise<InitialStateType> {
|
|
|
|
|
|
//获取当前账号所有子应用列表
|
|
//获取当前账号所有子应用列表
|
|
const systemLists = await getHospSubSystemList();
|
|
const systemLists = await getHospSubSystemList();
|
|
-
|
|
|
|
|
|
+
|
|
const userData = await fetchUserInfo();
|
|
const userData = await fetchUserInfo();
|
|
|
|
|
|
return {
|
|
return {
|
|
@@ -73,6 +70,20 @@ export async function getInitialState(): Promise<InitialStateType> {
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// export const dva = {
|
|
|
|
+// config: {
|
|
|
|
+// onAction: createLogger(),
|
|
|
|
+// onError(e: Error) {
|
|
|
|
+// message.error(e.message, 3);
|
|
|
|
+// },
|
|
|
|
+// },
|
|
|
|
+// };
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
const requestInterceptorsHandle = (
|
|
const requestInterceptorsHandle = (
|
|
url: string,
|
|
url: string,
|
|
options: RequestOptionsInit,
|
|
options: RequestOptionsInit,
|