123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- /*
- * @Author: your name
- * @Date: 2022-01-07 10:04:20
- * @LastEditTime: 2022-07-07 18:14:23
- * @LastEditors: code4eat awesomedema@gmail.com
- * @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',
- },
- title:false,
- 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: '/channelIndex/channelIndexOne',
- component: '@/pages/channelIndex/channelIndexOne/index.tsx',
- },
- {
- path: '/index',
- title:'欢迎进入医管平台',
- component: '@/pages/index/index.tsx',
- },
- {
- title:'精益管管理中台',
- path: '/platform',
- component: '@/pages/platform/_layout.tsx',
- routes: [
- {
- path: '/platform/sqlEditer',
- component: '@/pages/platform/sqlediter/index.tsx',
- },
- {
- 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: '/platform/setting/reports',
- component: '@/pages/platform/setting/reports/index.tsx',
- },
- ],
- },
- {
- path: '/personalCenter',
- component: '@/pages/personalCenter/index.tsx',
- },
- { path: '/login', layout: false, component: '@/pages/login/index' },
- ],
- },
- ],
- proxy: proxy[REACT_APP_ENV || 'dev'],
- manifest: {
- basePath: '/',
- },
- fastRefresh: {},
- layout: {
- layout: 'top',
- },
- // mfsu: {},
- qiankun: {
- master: {
- sandbox: {
- // strictStyleIsolation:true,
- // // experimentalStyleIsolation: true, // 试验性
- },
- },
- },
- });
|