chore: optimize the realization of theme color 🌟
This commit is contained in:
4
src/config/config.js
Normal file
4
src/config/config.js
Normal file
@@ -0,0 +1,4 @@
|
||||
// 自定义配置,参考 ./default/setting.js,需要自定义的属性在这里配置即可
|
||||
module.exports = {
|
||||
themeColor: '#13c2c2',
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user