WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2021-03-31 3cafdf134729197e22a53f79dd25c45db2062fa3
bases/Fetcher.js
@@ -540,13 +540,13 @@
                if (sever && typeof project.host.hosts[sever] !== 'undefined') {
                    return project.host.hosts[sever];
                }
                // 使用设置的默认服务器地址
                // 网页域名提取服务器地址
                else if (window.location.protocol.indexOf('http') >= 0) {
                    return window.location.protocol + '//' + window.location.host;
                }
                // 非 http 协议打开时,使用设置的服务器地址
                else if (project.host.server) {
                    return project.host.server;
                }
                // 网页域名提取服务器地址
                else {
                    return window.location.protocol + '//' + window.location.host;
                }
            }
        }