org-chart-frant/.umirc.ts

29 lines
786 B
TypeScript
Raw Normal View History

2022-07-12 17:10:03 +08:00
import { defineConfig } from 'umi';
export default defineConfig({
hash: true,
2022-08-08 17:19:47 +08:00
history: { type: 'hash' },
base: '/spa/orgChart/',
2022-07-12 17:10:03 +08:00
// exportStatic: {},
publicPath: './',
nodeModulesTransform: {
type: 'none',
},
routes: [
{ path: '/user', component: '@/pages/user' },
2022-08-08 17:19:47 +08:00
{ path: '/company', component: '@/pages/company' },
2023-07-27 15:54:54 +08:00
{ path: '/dragtree', component: '@/pages/dragTree' },
2022-07-12 17:10:03 +08:00
],
fastRefresh: {},
antd: {},
proxy: {
2022-08-08 17:19:47 +08:00
'/api': {
// 标识需要进行转换的请求的url
2023-07-24 16:58:41 +08:00
//target: 'http://127.0.0.1:8686/api', // 服务端域名 / http://localhost:8686
target: 'http://221.226.25.34:11080/api',
2022-08-08 17:19:47 +08:00
changeOrigin: true, // 允许域名进行转换
pathRewrite: { '^/api': '' }, // 将请求url里的ci去掉
},
},
2022-07-12 17:10:03 +08:00
});