소스 검색

修复this.appForm为null的错误

huqi 5 년 전
부모
커밋
e8c30c17d4
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      o2web/source/x_component_process_Work/Main.js

+ 3 - 1
o2web/source/x_component_process_Work/Main.js

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