|
|
@@ -70,7 +70,11 @@ export default {
|
|
|
|
|
|
// 获取API的地址
|
|
|
getApiURL: function (apiName) {
|
|
|
- return this.getHostPageBaseURL() + 'api/' + apiName;
|
|
|
+ if(apiName.startsWith("/")){
|
|
|
+ return this.getHostPageBaseURL() + 'api' + apiName;
|
|
|
+ }else{
|
|
|
+ return this.getHostPageBaseURL() + 'api/' + apiName;
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
/**
|