修改主题色
This commit is contained in:
@ -2,7 +2,10 @@ import { defineConfig } from 'umi';
|
||||
import defaultSettings from './defaultSettings';
|
||||
// import proxy from './proxy';
|
||||
import PageRoutes from './router.config'
|
||||
import theme from './theme';
|
||||
|
||||
const { REACT_APP_ENV } = process.env;
|
||||
|
||||
export default defineConfig({
|
||||
hash: true,
|
||||
antd: {},
|
||||
@ -25,10 +28,7 @@ export default defineConfig({
|
||||
// umi routes: https://umijs.org/docs/routing
|
||||
routes: PageRoutes,
|
||||
// Theme for antd: https://ant.design/docs/react/customize-theme-cn
|
||||
theme: {
|
||||
// ...darkTheme,
|
||||
'primary-color': defaultSettings.primaryColor,
|
||||
},
|
||||
theme,
|
||||
// @ts-ignore
|
||||
title: false,
|
||||
ignoreMomentLocale: true,
|
||||
|
Reference in New Issue
Block a user