1、获取数据后,根据默认id 勾选tree,无法勾选
this.$nextTick(() => {
console.log('11', this.selectId) // 能正确打印
this.$refs.tree.setCheckedKeys(this.selectId, false)
})
设置属性 default-checked-keys
也不起作用
1、获取数据后,根据默认id 勾选tree,无法勾选
this.$nextTick(() => {
console.log('11', this.selectId) // 能正确打印
this.$refs.tree.setCheckedKeys(this.selectId, false)
})
设置属性 default-checked-keys
也不起作用
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答4.8k 阅读✓ 已解决
4 回答4.3k 阅读✓ 已解决
4 回答1.9k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
后台返回id跟tree的id无法对应上。修改后可以勾选上