chore: optimize the realization of theme color 🌟

master
iczer 4 years ago
parent 5f68e2d231
commit 397f4b4ab8
  1. 2
      src/components/setting/Setting.vue
  2. 4
      src/config/default/index.js
  3. 21
      src/config/default/setting.js

@ -111,7 +111,7 @@ export default {
methods: {
onColorChange (values, colors) {
if (colors.length > 0) {
let closeMessage = this.$message.info(`您选择了主题色 ${colors}, 正在切换...`)
let closeMessage = this.$message.loading(`您选择了主题色 ${colors}, 正在切换...`)
let _this = this
themeUtil.changeThemeColor(colors[0]).then(() => {
_this.setThemeColor(colors[0])

@ -0,0 +1,4 @@
const animates = require('./animates')
const setting = require('./setting')
module.exports = {setting, animates}

@ -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…
Cancel
Save