Просмотр исходного кода

Merge branch 'fix/Process.redirect_mobile' into 'release'

Merge of fix/Process.redirect_mobile 修复移动端流转后重定向的问题 to release

See merge request o2oa/o2oa!2876

(cherry picked from commit 3c4e08003417161e646830a776fbc74f27edd24a)

a5684b38 修复移动端流转后重定向的问题
蔡祥熠 5 лет назад
Родитель
Сommit
6342bd77ce
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      o2web/source/x_component_process_Xform/Form.js

+ 3 - 0
o2web/source/x_component_process_Xform/Form.js

@@ -4306,6 +4306,9 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class(
             window.webkit.messageHandlers.closeWork.postMessage("");
         } else if (window.wx && window.__wxjs_environment === 'miniprogram') { //微信小程序 关闭页面
             wx.miniProgram.navigateBack({ delta: 1 });
+        } else if (this.json.afterProcessAction === "redirect" && this.json.afterProcessRedirectScript && this.json.afterProcessRedirectScript.code) {
+            var url = this.Macro.exec(this.json.afterProcessRedirectScript.code, this);
+            (new URI(url)).go();
         } else {
             var len = window.history.length;
             if (len > 1) {