chore: optimize the realization of theme color 🌟

This commit is contained in:
iczer
2020-07-01 17:23:39 +08:00
parent 42a34f7a16
commit 5f68e2d231
17 changed files with 46 additions and 123 deletions

4
src/config/config.js Normal file
View File

@@ -0,0 +1,4 @@
// 自定义配置,参考 ./default/setting.js需要自定义的属性在这里配置即可
module.exports = {
themeColor: '#13c2c2',
}

View File

@@ -1,22 +1,6 @@
// 系统配置
module.exports = {
lang: 'CN',
themeColor: '#1890ff',
theme: 'dark',
layout: 'side',
fixedHeader: false,
fixedSideBar: true,
weekMode: false,
multiPage: false,
systemName: 'Vue Antd Admin',
copyright: '2018 ICZER 工作室出品',
animate: {
name: 'bounce',
direction: 'left'
},
footerLinks: [
{link: 'https://pro.ant.design', name: 'Pro首页'},
{link: 'https://github.com/iczer/vue-antd-admin', icon: 'github'},
{link: 'https://ant.design', name: 'Ant Design'}
],
}
const deepmerge = require('deepmerge')
const _config = require('./config')
const setting = require('./default').setting
const config = deepmerge(setting, _config)
module.exports = config