瀏覽代碼

Merge branch 'fix/layout_appForm' into 'wrdp'

修复this.appForm为null的错误

See merge request o2oa/o2oa!3108
胡起 5 年之前
父節點
當前提交
59ab79b663
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      o2web/source/x_component_process_Work/Main.js

+ 2 - 0
o2web/source/x_component_process_Work/Main.js

@@ -725,6 +725,8 @@ MWF.xApplication.process.Work.Main = new Class({
                 this.appForm.workAction = this.action;
                 this.appForm.app = this;
 
+                if  (layout.desktop.type !== "layout") layout.appForm = this.appForm;
+
                 if( this.$events && this.$events.queryLoadForm ){
                     this.appForm.addEvent( "queryLoad", function () {
                         this.fireEvent("queryLoadForm");