You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.0 KiB

import { defineConfig } from 'umi';
import routes from './src/router/index';
export default defineConfig({
hash: true,
layout: {
name: '系统管理平台',
logo: `/logo.png?${new Date().getTime()}`,
// logo: null,
locale: false,
navTheme: 'light',
// contentWidth: 'Fluid',
fixedHeader: true,
fixSiderbar: true,
colorWeak: false,
splitMenus: false,
},
antd: {},
theme: {
'@primary-color': '#1677ff', // 全局主色
'@border-radius-base': '16px',
},
nodeModulesTransform: {
type: 'none',
},
dva: {
immer: true,
hmr: false,
},
ignoreMomentLocale: true,
proxy: {
'/api': {
target: 'https://admin-api-dev.bkbackground.com/',
changeOrigin: true,
pathRewrite: {
['^/api']: '',
},
},
'/bkbupload': {
target: 'https://upload-service-dev.bkbackground.com/',
changeOrigin: true,
pathRewrite: {
['^/bkbupload']: '/',
},
},
},
routes: routes,
fastRefresh: {},
});