org-chart-frant/.umirc.ts

37 lines
1.1 KiB
TypeScript
Raw Normal View History

2023-08-17 18:12:40 +08:00
/*
* @Author: Chengliang 1546584672@qq.com
* @Date: 2023-08-16 11:22:18
* @LastEditors: Chengliang 1546584672@qq.com
* @LastEditTime: 2023-08-17 13:59:41
* @FilePath: /org-chart-frant/.umirc.ts
* @Description: ,`customMade`, koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
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-08-17 18:12:40 +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
});