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