研发图纸文件管理系统-前端项目
iczer
2020-07-01 397f4b4ab86fa92fed17ff659b3354942807bbb5
chore: optimize the realization of theme color :star2:
2个文件已添加
1个文件已修改
27 ■■■■■ 已修改文件
src/components/setting/Setting.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/default/index.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/config/default/setting.js 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/setting/Setting.vue
@@ -111,7 +111,7 @@
  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])
src/config/default/index.js
New file
@@ -0,0 +1,4 @@
const animates = require('./animates')
const setting = require('./setting')
module.exports = {setting, animates}
src/config/default/setting.js
New 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'}
  ],
}