I wrote it according to the official demo. As a result, the error reporting method toggleRowSelection does not exist
related codes
this.line.siteArr.forEach (item = > {
) this.siteArr.forEach((val, index) => {
if (item.siteId === val.siteId) {
val.siteType = item.siteType
this.$refs.siteArr.toggleRowSelection(val,true)
}
})
})
Cannot read property "toggleRowSelection" of undefined