website.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /**
  2. * 全局配置文件
  3. */
  4. export default {
  5. title: "saber",
  6. logo: "",
  7. key: 'saber',//配置主键,目前用于存储
  8. indexTitle: '科德咨询',
  9. clientId: 'saber', // 客户端id
  10. clientSecret: 'saber_secret', // 客户端密钥
  11. tenantMode: true, // 是否开启租户模式
  12. tenantId: "000000", // 管理组租户编号
  13. captchaMode: false, // 是否开启验证码模式
  14. switchMode: false, // 是否开启登录切换角色部门
  15. lockPage: '/lock',
  16. tokenTime: 3000,
  17. tokenHeader: 'kd-auth',
  18. //http的status默认放行列表
  19. statusWhiteList: [],
  20. //配置首页不可关闭
  21. isFirstPage: false,
  22. fistPage: {
  23. label: "首页",
  24. value: "/wel/index",
  25. params: {},
  26. query: {},
  27. meta: {
  28. i18n: 'dashboard'
  29. },
  30. group: [],
  31. close: false
  32. },
  33. //配置菜单的属性
  34. menu: {
  35. iconDefault: 'iconfont icon-caidan',
  36. props: {
  37. label: 'name',
  38. path: 'path',
  39. icon: 'source',
  40. children: 'children'
  41. }
  42. },
  43. //oauth2配置
  44. oauth2: {
  45. // 是否开启注册功能
  46. registerMode: true,
  47. // 使用后端工程 @org.springblade.test.Sm2KeyGenerator 获取
  48. publicKey: '041283c3cff7c97b1b2ce9bae5754a25878b2bd254ebf0613db364db740ef0cf459af9db50a4434d2f36a49cee43e3457a828bc9a7eee331673f1dd6a3fa2c8b88',
  49. // 第三方系统授权地址
  50. authUrl: 'http://localhost/kd-auth/oauth/render',
  51. // 单点登录系统认证
  52. ssoMode: false, // 是否开启单点登录功能
  53. ssoBaseUrl: 'http://localhost:8100', // 单点登录系统地址(cloud端口为8100,boot端口为80)
  54. ssoAuthUrl: '/oauth/authorize?client_id=saber&response_type=code&redirect_uri=', // 单点登录授权地址
  55. ssoLogoutUrl: '/oauth/authorize/logout?redirect_uri=', // 单点登录退出地址
  56. redirectUri: 'http://localhost:1888', // 单点登录回调地址(Saber服务的登录界面地址)
  57. },
  58. design: {
  59. // 报表设计器地址(cloud端口为8108,boot端口为80)
  60. reportUrl: 'http://localhost:8108/ureport',
  61. },
  62. }