12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- /*
- * @Author: your name
- * @Date: 2022-01-07 10:04:20
- * @LastEditTime: 2022-02-14 16:28:05
- * @LastEditors: Please set LastEditors
- * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- * @FilePath: /KC-MiddlePlatform/config/config.ts
- */
- import { defineConfig } from 'umi';
- import proxy from './proxy';
- const { REACT_APP_ENV } = process.env;
- export default defineConfig({
- nodeModulesTransform: {
- type: 'none',
- },
- publicPath: '/',
- dva: {
- immer: true,
- hmr: true,
- },
- antd: {
- config: {
- prefixCls: 'kcmp-ant',
- // getPopupContainer:(triggerNode:HTMLElement)=>triggerNode
- },
- },
- lessLoader: {
- modifyVars: { '@ant-prefix': 'kcmp-ant' },
- }, //
- theme: {
- '@primary-color': '#3376FE',
- },
- routes: [
- {
- path: '/',
- component: '@/layouts/index.tsx',
- routes: [
- {
- path: '/app1',
- microApp: 'app1',
- },
- {
- path: '/index',
- component: '@/pages/index/index.tsx',
- },
- {
- path: '/platform',
- component: '@/pages/platform/_layout.tsx',
- routes: [
- {
- path: '/platform/setting/userManage',
- component: '@/pages/platform/setting/userManage/index.tsx',
- },
- {
- path: '/platform/setting/hospManage',
- component: '@/pages/platform/setting/hospManage/index.tsx',
- },
- {
- path: '/platform/setting/menuManage',
- component: '@/pages/platform/setting/menuManage/index.tsx',
- },
- {
- path: '/platform/setting/roleManage',
- component: '@/pages/platform/setting/roleManage/index.tsx',
- },
- ],
- },
- { path: '/login', layout: false, component: '@/pages/login/index' },
- ],
- },
- ],
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
- fastRefresh: {},
- layout: {
- layout: 'top',
- title: '医务中台',
- },
- // mfsu: {},
- qiankun: {
- master: {
- sandbox: {
- // strictStyleIsolation:true,
- // // experimentalStyleIsolation: true, // 试验性
- },
- },
- },
- });
|