|
|
@@ -63,9 +63,9 @@ export default {
|
|
|
//return this.getRootPath() + '/';
|
|
|
// changed by jack 增加代理的配置。
|
|
|
if(typeof REMOTE_DEV_PORT !== 'undefined' && REMOTE_DEV_PORT != null){
|
|
|
- return this.getRootPath() + '/proxy/' + REMOTE_DEV_PORT + '/';
|
|
|
+ return this.getRootPath() + '/proxy/' + REMOTE_DEV_PORT;
|
|
|
}else{
|
|
|
- return this.getRootPath() + '/';
|
|
|
+ return this.getRootPath();
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -77,9 +77,9 @@ export default {
|
|
|
// 获取API的地址
|
|
|
getApiURL: function (apiName) {
|
|
|
if(apiName.startsWith('/')){
|
|
|
- return this.getHostPageBaseURL() + 'api' + apiName;
|
|
|
+ return this.getHostPageBaseURL() + '/api' + apiName;
|
|
|
}else{
|
|
|
- return this.getHostPageBaseURL() + 'api/' + apiName;
|
|
|
+ return this.getHostPageBaseURL() + '/api/' + apiName;
|
|
|
}
|
|
|
},
|
|
|
|