Przeglądaj źródła

Merge branch 'fix/App_download_url' into 'develop'

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

See merge request o2oa/o2oa!162
蔡祥熠 5 lat temu
rodzic
commit
bd3fa1c24e

+ 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 () {