Эх сурвалжийг харах

1.0.77 修复请求 // 的bug。

YangZhiJie 2 жил өмнө
parent
commit
6aaef49ace

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "pc-component-v3",
-  "version": "1.0.76",
+  "version": "1.0.77",
   "description": "",
   "main": "dist/pc-component-v3.js",
   "scripts": {

+ 4 - 4
packages/common/Common.js

@@ -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;
     }
   },