权限设置

role1.0
fanluyan 1 year ago
parent 4e98177836
commit 414554c0e5

@ -71,9 +71,11 @@ export default {
console.log(res); console.log(res);
this.treeLoading = false; this.treeLoading = false;
this.treeData = res.data.list; this.treeData = res.data.list;
this.treeData.forEach((item) => { // this.treeData.forEach((item) => {
this.defaultExpandedArr.push(item.id); // this.defaultExpandedArr.push(item.id);
}); // });
this.defaultExpandedArr.push(this.treeData[0].id);
// console.log("id", this.defaultExpandedArr);
} else { } else {
this.$message.error(res.msg); this.$message.error(res.msg);
} }

Loading…
Cancel
Save