You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
829 B
TypeScript
30 lines
829 B
TypeScript
import { defineConfig } from 'umi';
|
|
|
|
export default defineConfig({
|
|
hash: true,
|
|
history: { type: 'hash' },
|
|
base: '/spa/orgChart/',
|
|
// exportStatic: {},
|
|
publicPath: './',
|
|
nodeModulesTransform: {
|
|
type: 'none',
|
|
},
|
|
routes: [
|
|
{ path: '/user', component: '@/pages/user' },
|
|
{ path: '/company', component: '@/pages/company' },
|
|
{ path: '/dragtree', component: '@/pages/dragTree' },
|
|
{ path: '/statistics', component: '@/pages/statisticsTable' },
|
|
],
|
|
fastRefresh: {},
|
|
antd: {},
|
|
proxy: {
|
|
'/api': {
|
|
// 标识需要进行转换的请求的url
|
|
target: 'http://127.0.0.1:8686/api', // 服务端域名
|
|
//target: 'http://221.226.25.34:11080/api',
|
|
changeOrigin: true, // 允许域名进行转换
|
|
pathRewrite: { '^/api': '' }, // 将请求url里的ci去掉
|
|
},
|
|
},
|
|
});
|