修改主题色

This commit is contained in:
lix
2025-06-12 17:19:52 +08:00
parent eb90574c74
commit a31cf954cf
11 changed files with 124 additions and 47 deletions

View File

@ -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,