setting.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. // 开启 KeepAlive 后需要缓存的路由地址
  20. export const KEEP_ALIVE_INCLUDE = [
  21. 'equipmentIndex',
  22. 'boatIndex',
  23. 'meterIndex',
  24. 'mouldIndex',
  25. 'accountingLedgerIndex',
  26. 'turnoverCarIndex',
  27. 'turnoverDisksIndex',
  28. 'sparepartIndex',
  29. 'dryAreaIndex',
  30. 'accountingLedgerIndex'
  31. ];
  32. // 直接指定菜单数据
  33. export const USER_MENUS = undefined;
  34. // [
  35. // {
  36. // path: '/dashboard',
  37. // redirect: '/dashboard/user',
  38. // meta: { title: '流程管理', icon: 'el-icon-setting' }
  39. // },
  40. // {
  41. // path: '/system',
  42. // redirect: '/system/user',
  43. // meta: { title: '流程管理', icon: 'el-icon-setting' },
  44. // children: [
  45. // {
  46. // path: '/system/user',
  47. // component: '/system/user',
  48. // meta: { title: '流程定义', icon: 'el-icon-user', hide: false }
  49. // },
  50. // {
  51. // path: '/system/user',
  52. // component: '/system/user',
  53. // meta: { title: '流程审批', icon: 'el-icon-user', hide: false }
  54. // },
  55. // {
  56. // path: '/system/user',
  57. // component: '/system/user',
  58. // meta: { title: '流程实列', icon: 'el-icon-user', hide: false }
  59. // }
  60. // ]
  61. // },
  62. // {
  63. // path: '/system',
  64. // redirect: '/system/user',
  65. // meta: { title: '授权管理', icon: 'el-icon-setting' },
  66. // children: [
  67. // {
  68. // path: '/system/user',
  69. // component: '/system/user',
  70. // meta: { title: '用户管理', icon: 'el-icon-user', hide: false }
  71. // },
  72. // {
  73. // path: '/system/user',
  74. // component: '/system/user',
  75. // meta: { title: '角色管理', icon: 'el-icon-user', hide: false }
  76. // },
  77. // {
  78. // path: '/system/user',
  79. // component: '/system/user',
  80. // meta: { title: '租户管理', icon: 'el-icon-user', hide: false }
  81. // },
  82. // {
  83. // path: '/system/user',
  84. // component: '/system/user',
  85. // meta: { title: '菜单管理', icon: 'el-icon-user', hide: false }
  86. // }
  87. // ]
  88. // }
  89. // ];
  90. // 首页名称, 为空则取第一个菜单的名称
  91. export const HOME_TITLE = undefined;
  92. // 首页路径, 为空则取第一个菜单的地址
  93. export const HOME_PATH = undefined;
  94. // 外层布局的路由地址
  95. export const LAYOUT_PATH = '/';
  96. // 刷新路由的路由地址
  97. export const REDIRECT_PATH = '/redirect';
  98. // 开启页签栏是否缓存组件
  99. //export const TAB_KEEP_ALIVE = process.env.NODE_ENV !== 'development';
  100. export const TAB_KEEP_ALIVE = true;
  101. // token 传递的 header 名称
  102. export const TOKEN_HEADER_NAME = 'Authorization';
  103. // token 存储的名称
  104. export const TOKEN_STORE_NAME = 'access_token';
  105. // 主题配置存储的名称
  106. export const THEME_STORE_NAME = 'theme';
  107. // i18n 缓存的名称
  108. export const I18N_CACHE_NAME = 'i18n-lang';
  109. // 是否开启国际化功能
  110. export const I18N_ENABLE = true;
  111. // 高德地图 key , 自带的只能用于测试, 正式项目请自行到高德地图官网申请 key
  112. export const MAP_KEY = '006d995d433058322319fa797f2876f5';
  113. // EleAdmin 授权码, 自带的只能用于演示, 正式项目请更换为自己的授权码
  114. export const LICENSE_CODE =
  115. 'dk9mcwJyetRWQlxWRiojIqJWdzJCLi4Wa4MDNxojI0NWZlJiOiQWaiwCMsICOyRjTEZGWi42bpNnclZnI0nIxEjLxIiO0NW=';