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.
26 lines
647 B
TypeScript
26 lines
647 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' }
|
|
],
|
|
fastRefresh: {},
|
|
antd: {},
|
|
proxy: {
|
|
"/api": { // 标识需要进行转换的请求的url
|
|
"target": "http://localhost:18089/api", // 服务端域名
|
|
"changeOrigin": true, // 允许域名进行转换
|
|
"pathRewrite": { "^/api": ''} // 将请求url里的ci去掉
|
|
}
|
|
}
|
|
});
|