:default-expanded-keys="openCheck" // tree 的配置项
this.openCheck = id && id.split(",").map(String); // 默认展开
this.$refs.menu.setCheckedKeys(this.openCheck || []);// 勾选
el-tree 展开勾选的
猜你喜欢
转载自blog.csdn.net/qq_44716001/article/details/131596784
今日推荐
周排行