:default-expanded-keys="openCheck" // tree 的配置项
this.openCheck = id && id.split(",").map(String); // 默认展开
this.$refs.menu.setCheckedKeys(this.openCheck || []);// 勾选
el-tree 展开勾选的
最新推荐文章于 2024-01-09 17:26:05 发布
:default-expanded-keys="openCheck" // tree 的配置项
this.openCheck = id && id.split(",").map(String); // 默认展开
this.$refs.menu.setCheckedKeys(this.openCheck || []);// 勾选