| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // var host = window.location.protocol + '//' + window.location.hostname
- // 当前后端不在同一个服务器时,需要指定host地址
- var host = 'http://10.7.13.26'
- // var host = 'http://127.0.0.1'
- // combine为true时五合一部署, 为false时分五个服务部署
- // var combine = true
- var combine = true
- var gateway = '8280/stage-api'
- var defaultModulePortMap = {
- form: gateway +'/form',
- portal: gateway +'/portal',
- bpmRunTime: gateway +'/bpmRunTime',
- bpmModel: gateway +'/bpmModel',
- uc: gateway +'/uc',
- auth: gateway +'/auth',
- signs: gateway +'/signs',
- commonSign: gateway
- }
- window.getModuleRootUrl = function (module) {
- // 默认是全部服务合一的端口
- var modulePort = '8088'
- if (!combine) {
- modulePort = defaultModulePortMap[module]
- }
- return host + ':' + modulePort
- }
- window.context = {
- manage: host + ':8080/mvue', //管理端页面
- front: host + '/front', //前端页面
- mobile: host + ':8082/mobile', //手机端页面
- form: getModuleRootUrl('form'), //'http://127.0.0.1:8082', //
- portal: getModuleRootUrl('portal'),
- bpmRunTime: getModuleRootUrl('bpmRunTime'),
- bpmModel: getModuleRootUrl('bpmModel'),
- uc: getModuleRootUrl('uc'),
- auth: getModuleRootUrl('auth'),
- sign: getModuleRootUrl('signs'), //'http://127.0.0.1:8088', //
- commonSign: 'http://10.7.14.215:8280/stage-api/'
- }
- // 单点配置
- window.ssoConfig = {
- // mode: 'oauth', // 空则不使用单点 支持的模式有 cas oauth basic
- // url: 'http://10.7.14.215:8280/auth',
- // clientId: 'admin', // oauth模式下需要提供
- // logout: 'http://10.7.14.215:8280/auth'
- }
|