extjs7 selectfield异常 Uncaught TypeError: Cannot read property 'hasPendingLoad' of null

小编:管理员 487阅读 2022.09.07

场景

下拉选择某项目后报异常 “Uncaught TypeError: Cannot read property ‘hasPendingLoad’ of null”

源码view.js
{
    xtype: 'selectfield', label: '支持类型', bind: {store: '{types}', value: '{types}'},
    multiSelect: true
}
复制viewmodel.js
data: {
	types: null
},
stores: {
        types: {
            data: [...]
        }
    }
复制解决方案:绑定的store和data改为不同名称即可
关联标签: