config.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * @description 通用配置
  3. */
  4. let url = ''
  5. if (location.port == '15000') {
  6. //url = 'http://127.0.0.1/dever2/package/manage'
  7. url = 'http://127.0.0.1/api2/package/manage/api'
  8. } else {
  9. url = location.origin + location.pathname + 'api'
  10. }
  11. deverConfig = {
  12. // 一些基本配置,定义后台title
  13. setting: {
  14. <<<<<<< HEAD
  15. title: '源代宝',
  16. tokenTableName: 'dever-yuandaibao',
  17. =======
  18. title: 'API充值系统',
  19. tokenTableName: 'dever-admin-sign',
  20. >>>>>>> a4cc3265f21ed07e8c85f55dc31aaeadf6957ded
  21. //loginParam: { system: 'group', number: 'default' },
  22. },
  23. // 网络配置
  24. network: {
  25. requestTimeout: 1000000,
  26. baseURL: url, // 配置服务器地址,
  27. },
  28. // 默认布局
  29. theme: {
  30. // 布局种类:横向布局horizontal、纵向布局vertical、分栏布局column、综合布局comprehensive、常规布局common、浮动布局float
  31. layout: 'column',
  32. // 主题名称:默认blue-black、blue-white、green-black、green-white、渐变ocean、red-white、red-black
  33. themeName: 'blue-black',
  34. // 菜单背景 none、vab-background
  35. background: 'none',
  36. // 菜单宽度,仅支持px,建议大小:266px、277px、288px,其余尺寸会影响美观
  37. menuWidth: '266px',
  38. // 分栏风格(仅针对分栏布局column时生效):横向风格horizontal、纵向风格vertical、卡片风格card、箭头风格arrow
  39. columnStyle: 'card',
  40. // 显示标签页时标签页样式:卡片风格card、灵动风格smart、圆滑风格smooth
  41. tabsBarStyle: 'smooth',
  42. },
  43. }