mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
chore: optimize the realization of theme color 🌟
This commit is contained in:
parent
5f68e2d231
commit
397f4b4ab8
@ -111,7 +111,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
onColorChange (values, colors) {
|
onColorChange (values, colors) {
|
||||||
if (colors.length > 0) {
|
if (colors.length > 0) {
|
||||||
let closeMessage = this.$message.info(`您选择了主题色 ${colors}, 正在切换...`)
|
let closeMessage = this.$message.loading(`您选择了主题色 ${colors}, 正在切换...`)
|
||||||
let _this = this
|
let _this = this
|
||||||
themeUtil.changeThemeColor(colors[0]).then(() => {
|
themeUtil.changeThemeColor(colors[0]).then(() => {
|
||||||
_this.setThemeColor(colors[0])
|
_this.setThemeColor(colors[0])
|
||||||
|
4
src/config/default/index.js
Normal file
4
src/config/default/index.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
const animates = require('./animates')
|
||||||
|
const setting = require('./setting')
|
||||||
|
|
||||||
|
module.exports = {setting, animates}
|
21
src/config/default/setting.js
Normal file
21
src/config/default/setting.js
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
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'}
|
||||||
|
],
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user