方法
this.allUser = this.allUser.map((item, index) => {
if (index === 0) {
return item;
} else {
return {
...item,
disabled: true,
};
}
});
this.$nextTick(() => {
this.$refs.tree.setCheckedNodes(this.allUser.slice(0, 1));
});