瀏覽代碼

Merge branch 'fix/App_download_url' into 'develop'

Merge of fix/[登录页]修改APP的下载地址 to develop

See merge request o2oa/o2oa!162
蔡祥熠 6 年之前
父節點
當前提交
bd3fa1c24e
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      o2web/source/o2_core/o2/xDesktop/Authentication.js

+ 5 - 1
o2web/source/o2_core/o2/xDesktop/Authentication.js

@@ -760,7 +760,11 @@ MWF.xDesktop.Authentication.LoginForm = new Class({
             this.bindSepArea = this.bindLoginContainer.getElement("[styles='bindSepArea']");
             var link = this.bindLoginContainer.getElement("[styles='bindTipLinkArea']");
             link.addEvent("click", function () {
-                window.open(this.lp.o2downloadLink, "_blank");
+                if( layout.config.appUrl ){
+                    window.open(layout.config.appUrl, "_blank");
+                }else{
+                    window.open(this.lp.o2downloadLink, "_blank");
+                }
             }.bind(this));
 
             MWF.xDesktop.requireApp("Template", "MForm", function () {