|
@@ -3,19 +3,22 @@ import { defineConfig } from 'umi';
|
|
import defaultSettings from './defaultSettings';
|
|
import defaultSettings from './defaultSettings';
|
|
import proxy from './proxy';
|
|
import proxy from './proxy';
|
|
import routes from './routes';
|
|
import routes from './routes';
|
|
|
|
+import darkTheme from '@ant-design/dark-theme';
|
|
|
|
|
|
const { REACT_APP_ENV } = process.env;
|
|
const { REACT_APP_ENV } = process.env;
|
|
|
|
|
|
export default defineConfig({
|
|
export default defineConfig({
|
|
hash: true,
|
|
hash: true,
|
|
- antd: {},
|
|
|
|
|
|
+ antd: {
|
|
|
|
+ // dark: true,// 暗黑模式
|
|
|
|
+ compact: true, // 紧凑模式
|
|
|
|
+ },
|
|
dva: {
|
|
dva: {
|
|
hmr: true,
|
|
hmr: true,
|
|
},
|
|
},
|
|
layout: {
|
|
layout: {
|
|
name: '科德管理系统',
|
|
name: '科德管理系统',
|
|
locale: false,
|
|
locale: false,
|
|
- disableMobile: false,
|
|
|
|
siderWidth: 208,
|
|
siderWidth: 208,
|
|
...defaultSettings,
|
|
...defaultSettings,
|
|
},
|
|
},
|
|
@@ -36,7 +39,12 @@ export default defineConfig({
|
|
routes,
|
|
routes,
|
|
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
|
|
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
|
|
theme: {
|
|
theme: {
|
|
- 'primary-color': defaultSettings.primaryColor,
|
|
|
|
|
|
+ ...darkTheme,
|
|
|
|
+ // black: '#f00',//内容区背景颜色
|
|
|
|
+ // 'popover-background': '#ff0',//侧边栏背景颜色
|
|
|
|
+ // 'component-background': '#fff',//内容容器(比如搜索栏)背景颜色
|
|
|
|
+ // 'table-header-bg': '#fff',//表格头部颜色
|
|
|
|
+ 'primary-color': defaultSettings.primaryColor, //主题颜色
|
|
},
|
|
},
|
|
esbuild: {},
|
|
esbuild: {},
|
|
title: false,
|
|
title: false,
|