使用setChecked方法
在接口请求成功的.then中配置
setTimeout(() => {
this.defaultKeys(默认选中的数组).forEach((value) => {
this.$refs.tree.setChecked(value, true, false);
});
}, 100);
使用setChecked方法
在接口请求成功的.then中配置
setTimeout(() => {
this.defaultKeys(默认选中的数组).forEach((value) => {
this.$refs.tree.setChecked(value, true, false);
});
}, 100);