You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.6 KiB

5 years ago
5 years ago
  1. /**
  2. * BASE_API:对应api网关的外网访问地址在config/dev.env.js config/prod.env.js 中配置
  3. * applicationName:微服务编号即spring boot中的spring.application.name
  4. * contextPath:应用的上下文路径即spring boot中的server.context-path
  5. * api的调用一般是 /${BASE_API}/${applicationName}/${contextPath}/${具体的后端服务路径}
  6. */
  7. var sysName = 'oa协同办公系统'// 系统名称,用于展示
  8. export default {
  9. getOauth2LoginBasePath:function(){
  10. return "/oauth2client"
  11. },
  12. getBaseDomainUrl:function(){
  13. return "https://www.qingqinkj.com"
  14. },
  15. getSysName: function() {
  16. return sysName
  17. },
  18. getSmsBasePath: function() {
  19. return '/sms/sms'
  20. },
  21. // 图片内容服务api路径
  22. getArcBasePath: function() {
  23. return '/arc/arc'
  24. },
  25. // 图片内容服务api路径
  26. getFormBasePath: function() {
  27. return '/form/form'
  28. },
  29. // 工作流api路径
  30. getWorkflowBasePath: function() {
  31. return '/workflow/workflow'
  32. },
  33. // 协同办公系统api路径
  34. getOaBasePath: function() {
  35. return '/oa/oa'
  36. },
  37. // 图片内容首页路径
  38. getArcIndexPath: function() {
  39. return '/arc/arc/index.html'
  40. },
  41. getBaseDomainUrl: function() {
  42. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION
  43. },
  44. // 图片展示或下载路径
  45. getArcFileUploadBasePath: function() {
  46. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
  47. // return process.env.BASE_API+'/arc/arc'
  48. },
  49. //excel上传路径
  50. getExcelUploadBasePath:function(){
  51. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/oa/oa'
  52. },
  53. // 图片展示或下载路径
  54. getArcImagePath: function() {
  55. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
  56. // return process.env.BASE_API+'/arc/arc'
  57. },
  58. // 系统管理api路径
  59. getSysBasePath: function() {
  60. return '/sys/sys'
  61. },
  62. // 系统管理首页路径
  63. getSysIndexPath: function() {
  64. return '/sys/sys/index.html'
  65. },
  66. // 商城管理后台api路径
  67. getMallmBasePath: function() {
  68. return '/mallm/mallm'
  69. },
  70. // 商城管理后台首页路径
  71. getMallmIndexPath: function() {
  72. return '/mallm/mallm/index.html'
  73. },
  74. getWorkFlowEditorUrl: function() {
  75. return '/workflow/' + process.env.VERSION + '/editor/editor/indexIframe.html'
  76. },
  77. getXmBasePath: function(){
  78. return '/xm/xm'
  79. },
  80. getCoreBasePath: function(){
  81. return '/xm/xm'
  82. },
  83. getImBasePath:function(){
  84. return '/im/im'
  85. }
  86. }