el-tree 展开勾选的

  :default-expanded-keys="openCheck"  // tree 的配置项
        this.openCheck = id && id.split(",").map(String); // 默认展开
        this.$refs.menu.setCheckedKeys(this.openCheck || []);// 勾选

猜你喜欢

转载自blog.csdn.net/qq_44716001/article/details/131596784