瀏覽代碼

chilForm赋值报错

zhuth 7 年之前
父節點
當前提交
daf0d08d16
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/saas-web/app/view/document/kind/ChildForm.js

+ 1 - 1
frontend/saas-web/app/view/document/kind/ChildForm.js

@@ -271,7 +271,7 @@ Ext.define('KitchenSink.view.binding.ChildForm', {
                 }
                 if(combo){
                     combo.store.load(function() {
-                        combo.setValue(params._value);
+                        typeof combo.setValue == 'function' && combo.setValue(params._value);
                     });
                 }
                 form.ownerCt.close();