Browse Source

上传图片取消端口号,nfs服务

zhongzewei 7 years ago
parent
commit
119a72740d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      web/common/js/uploadImg.js

+ 2 - 1
web/common/js/uploadImg.js

@@ -95,7 +95,8 @@ $(document).ready(function () {
     * @return{void}
     * */
     function initImgsDiv(curPage, pageCount, imgsUrl) {
-        let origin = window.location.origin;
+        //去掉端口的源
+        let origin = `${window.location.protocol}//${window.location.hostname}`;
         let trigger = curTrigger;
         $('#prevPage').removeAttr('disabled');
         $('#nextPage').removeAttr('disabled');