setting.js 1.37 KB
/*
 * @Descripttion:
 * @version:
 * @Author: limin
 * @Date: 2020-12-23 17:06:59
 * @LastEditors: limin
 * @LastEditTime: 2020-12-23 18:33:09
 */
export default {
  // 快捷键
  // 支持快捷键 例如 ctrl+shift+s
  hotkey: {
    search: {
      open: 's',
      close: 'esc'
    }
  },
  // 侧边栏默认折叠状态
  menu: {
    asideCollapse: false
  },
  // 在读取持久化数据失败时默认页面
  page: {
    opened: [
      {
        name: 'index',
        fullPath: '/index',
        meta: {
          title: '首页',
          auth: false
        }
      }
    ]
  },
  // 菜单搜索
  search: {
    enable: true
  },
  // 注册的主题
  theme: {
    list: [
      {
        title: 'classic',
        name: 'classic',
        color: '#2A58AD',
        preview: 'image/theme/classic/preview@2x.png'
      },
      {
        title: 'dark',
        name: 'dark',
        color: '#314256',
        preview: 'image/theme/dark/preview@2x.png'
      },
      {
        title: 'blue',
        name: 'blue',
        color: '#652DED',
        preview: 'image/theme/blue/preview@2x.png'
      },
      {
        title: 'plane',
        name: 'plane',
        color: '#377DE7',
        backgroundImage: 'image/theme/plane/bg.jpg',
        preview: 'image/theme/plane/preview@2x.png'
      }
    ]
  },
  // 是否默认开启页面切换动画
  transition: {
    active: true
  }
}