Browse Source

优化

master
陈裕财 2 years ago
parent
commit
0038064219
  1. 26
      src/api/mdp_pub/mdp_config.js

26
src/api/mdp_pub/mdp_config.js

@ -64,33 +64,39 @@ export default {
return 'mallm' return 'mallm'
}, },
// 图片内容首页路径 // 图片内容首页路径
getArcIndexPath: function() {
return '/arc/arc/index.html'
getArcIndexPath: function() {
var uri=this.getApiBase()+"/"+this.getArcContext()+"/index.html"
var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri;
}, },
// 图片展示或下载路径 // 图片展示或下载路径
getArcFileUploadBasePath: function() { getArcFileUploadBasePath: function() {
return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
// return process.env.BASE_API+'/arc/arc'
var uri=this.getApiBase()+"/"+this.getArcContext()
var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri;
}, },
//excel上传路径 //excel上传路径
getExcelUploadBasePath:function(){
return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/oa/oa'
getExcelUploadBasePath:function(){
var uri=this.getApiBase()+"/"+this.getArcContext()
var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri;
}, },
// 图片展示或下载路径 // 图片展示或下载路径
getArcImagePath: function() { getArcImagePath: function() {
return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
// return process.env.BASE_API+'/arc/arc'
var uri=this.getApiBase()+"/"+this.getArcContext()
var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri;
}, },
// 系统管理首页路径 // 系统管理首页路径
getSysIndexPath: function() { getSysIndexPath: function() {
return '/lcode/index.html'
return '/'+this.getSysContext()+'/index.html'
}, },
// 商城管理后台首页路径 // 商城管理后台首页路径
getMallmIndexPath: function() { getMallmIndexPath: function() {
return '/mallm/mallm/index.html' return '/mallm/mallm/index.html'
}, },
getWorkFlowEditorUrl: function() { getWorkFlowEditorUrl: function() {
return '/workflow/' + process.env.VERSION + '/editor/editor/indexIframe.html'
return this.getWorkflowContext()+'/'+ process.env.VERSION + '/editor/editor/indexIframe.html'
}, },
getApiBase:function(){ getApiBase:function(){

Loading…
Cancel
Save