org-chart-frant/.umirc.ts

35 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-08-08 17:19:47 +08:00
/*
* @Author: Chengliang 1546584672@qq.com
* @Date: 2022-08-04 10:22:55
* @LastEditors: Chengliang 1546584672@qq.com
2023-05-24 10:46:20 +08:00
* @LastEditTime: 2023-05-23 15:18:17
2022-08-08 17:19:47 +08:00
* @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' },
2023-05-24 10:46:20 +08:00
base: '/spa/aischart/',
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' },
2022-07-12 17:10:03 +08:00
],
fastRefresh: {},
antd: {},
proxy: {
2022-08-08 17:19:47 +08:00
'/api': {
// 标识需要进行转换的请求的url
2023-05-24 10:46:20 +08:00
target: 'http://127.0.0.1:8686/api', // 服务端域名 / http://localhost:8686
2022-08-08 17:19:47 +08:00
changeOrigin: true, // 允许域名进行转换
pathRewrite: { '^/api': '' }, // 将请求url里的ci去掉
},
},
2022-07-12 17:10:03 +08:00
});