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
也不起作用
9 回答1.7k 阅读✓ 已解决
6 回答963 阅读
3 回答1.4k 阅读✓ 已解决
5 回答1.4k 阅读✓ 已解决
4 回答962 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
3 回答869 阅读
后台返回id跟tree的id无法对应上。修改后可以勾选上