chore: optimize the realization of theme color :star2:
| | |
| | | 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]) |
New file |
| | |
| | | const animates = require('./animates') |
| | | const setting = require('./setting') |
| | | |
| | | module.exports = {setting, animates} |
New file |
| | |
| | | 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'} |
| | | ], |
| | | } |