使用setChecked方法
在接口请求成功的.then中配置
setTimeout(() => {
this.defaultKeys(默认选中的数组).forEach((value) => {
this.$refs.tree.setChecked(value, true, false);
});
}, 100);
版权声明:本文为D_ylong原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
使用setChecked方法
在接口请求成功的.then中配置
setTimeout(() => {
this.defaultKeys(默认选中的数组).forEach((value) => {
this.$refs.tree.setChecked(value, true, false);
});
}, 100);