setting.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // 接口地址
  2. export const API_BASE_URL = process.env.VUE_APP_API_BASE_URL;
  3. // 项目名称
  4. export const PROJECT_NAME = process.env.VUE_APP_NAME;
  5. // 不显示侧栏的路由
  6. export const HIDE_SIDEBARS = [];
  7. // 不显示页脚的路由
  8. export const HIDE_FOOTERS = [
  9. '/system/dictionary',
  10. '/system/organization',
  11. '/form/advanced'
  12. ];
  13. // 页签同路由不同参数可重复打开的路由
  14. export const REPEATABLE_TABS = [];
  15. // 不需要登录的路由
  16. export const WHITE_LIST = ['/login', '/forget'];
  17. // 开启 KeepAlive 后仍然不需要缓存的路由地址
  18. export const KEEP_ALIVE_EXCLUDES = [];
  19. // 直接指定菜单数据
  20. export const USER_MENUS = undefined;
  21. // [
  22. // {
  23. // path: '/dashboard',
  24. // redirect: '/dashboard/user',
  25. // meta: { title: '流程管理', icon: 'el-icon-setting' }
  26. // },
  27. // {
  28. // path: '/system',
  29. // redirect: '/system/user',
  30. // meta: { title: '流程管理', icon: 'el-icon-setting' },
  31. // children: [
  32. // {
  33. // path: '/system/user',
  34. // component: '/system/user',
  35. // meta: { title: '流程定义', icon: 'el-icon-user', hide: false }
  36. // },
  37. // {
  38. // path: '/system/user',
  39. // component: '/system/user',
  40. // meta: { title: '流程审批', icon: 'el-icon-user', hide: false }
  41. // },
  42. // {
  43. // path: '/system/user',
  44. // component: '/system/user',
  45. // meta: { title: '流程实列', icon: 'el-icon-user', hide: false }
  46. // }
  47. // ]
  48. // },
  49. // {
  50. // path: '/system',
  51. // redirect: '/system/user',
  52. // meta: { title: '授权管理', icon: 'el-icon-setting' },
  53. // children: [
  54. // {
  55. // path: '/system/user',
  56. // component: '/system/user',
  57. // meta: { title: '用户管理', icon: 'el-icon-user', hide: false }
  58. // },
  59. // {
  60. // path: '/system/user',
  61. // component: '/system/user',
  62. // meta: { title: '角色管理', icon: 'el-icon-user', hide: false }
  63. // },
  64. // {
  65. // path: '/system/user',
  66. // component: '/system/user',
  67. // meta: { title: '租户管理', icon: 'el-icon-user', hide: false }
  68. // },
  69. // {
  70. // path: '/system/user',
  71. // component: '/system/user',
  72. // meta: { title: '菜单管理', icon: 'el-icon-user', hide: false }
  73. // }
  74. // ]
  75. // }
  76. // ];
  77. // 首页名称, 为空则取第一个菜单的名称
  78. export const HOME_TITLE = undefined;
  79. // 首页路径, 为空则取第一个菜单的地址
  80. export const HOME_PATH = undefined;
  81. // 外层布局的路由地址
  82. export const LAYOUT_PATH = '/';
  83. // 刷新路由的路由地址
  84. export const REDIRECT_PATH = '/redirect';
  85. // 开启页签栏是否缓存组件
  86. //export const TAB_KEEP_ALIVE = process.env.NODE_ENV !== 'development';
  87. export const TAB_KEEP_ALIVE = true;
  88. // 开启 KeepAlive 后需要缓存的路由地址
  89. export const KEEP_ALIVE_INCLUDE= [
  90. // 'stockManagementAdd',
  91. // 'outgoingManagementAdd',
  92. ];
  93. // token 传递的 header 名称
  94. export const TOKEN_HEADER_NAME = 'Authorization';
  95. // token 存储的名称
  96. export const TOKEN_STORE_NAME = 'access_token';
  97. // 主题配置存储的名称
  98. export const THEME_STORE_NAME = 'theme';
  99. // i18n 缓存的名称
  100. export const I18N_CACHE_NAME = 'i18n-lang';
  101. // 是否开启国际化功能
  102. export const I18N_ENABLE = true;
  103. // 高德地图 key , 自带的只能用于测试, 正式项目请自行到高德地图官网申请 key
  104. export const MAP_KEY = '006d995d433058322319fa797f2876f5';
  105. // EleAdmin 授权码, 自带的只能用于演示, 正式项目请更换为自己的授权码
  106. export const LICENSE_CODE =
  107. 'dk9mcwJyetRWQlxWRiojIqJWdzJCLi4Wa4MDNxojI0NWZlJiOiQWaiwCMsICOyRjTEZGWi42bpNnclZnI0nIxEjLxIiO0NW=';