Table using load to click to expand will trigger multiple load callbacks (#9397)

* Cannot read properties of null (reading 'id')

If columnKey is not set, execute clearFilter and prompt Cannot read properties of null (reading 'id')
Suggestion: Add judgment to clearly prompt developers

* Update util.ts

* Update util.ts

* Update util.ts

* Update config.ts

* fix:table

* Update util.ts
This commit is contained in:
热爱vue的小菜鸟 2022-08-31 13:39:16 +08:00 committed by GitHub
parent 6e3774f94c
commit 0373b01940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,6 +198,9 @@ export function treeCellPrefix<T>(
const ele: VNode[] = []
const callback = function (e) {
e.stopPropagation()
if (treeNode.loading) {
return
}
store.loadOrToggle(row)
}
if (treeNode.indent) {