Commit 77333e4f authored by afc163's avatar afc163 Committed by 陈帅

defaultSetting primary color works on theme

parent 3fcd79a3
// https://umijs.org/config/ // https://umijs.org/config/
const pageRoutes = require('./router.config'); const pageRoutes = require('./router.config');
const webpackplugin = require('./plugin.config'); const webpackplugin = require('./plugin.config');
const defaultSetting = require('../src/defaultSetting');
export default { export default {
// add for transfer to umi // add for transfer to umi
...@@ -30,9 +31,9 @@ export default { ...@@ -30,9 +31,9 @@ export default {
], ],
// 路由配置 // 路由配置
routes: pageRoutes, routes: pageRoutes,
// theme for antd
theme: { theme: {
'card-actions-background': '#f5f8fa', 'primary-color': defaultSetting.primaryColor,
}, },
externals: { externals: {
'@antv/data-set': 'DataSet', '@antv/data-set': 'DataSet',
......
export default { module.exports = {
collapse: false, collapse: false,
silderTheme: 'dark', silderTheme: 'dark',
primaryColor: '#1890FF', primaryColor: '#1890FF',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment