setting.js 3.7 KB

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