Browse Source

主从表isDirty方法在页面不出来时报错

zhuth 7 years ago
parent
commit
0143dc5def
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frontend/saas-web/app/view/core/form/FormPanel.js

+ 1 - 1
frontend/saas-web/app/view/core/form/FormPanel.js

@@ -448,7 +448,7 @@ Ext.define('saas.view.core.form.FormPanel', {
 
 
     isDirty: function () {
     isDirty: function () {
         var me = this,
         var me = this,
-        formItems = me.formItems,
+        formItems = me.formItems || [],
         detailGrids = me.query('detailGridField'),
         detailGrids = me.query('detailGridField'),
         dirty = false;
         dirty = false;