直接通过this.$refs.epIdsTree.getCheckedKeys()就可获获取当前选中的节点,不需要额外加个临时数组保存
saveEpIds(){
const epIds = this.$refs.epIdsTree.getCheckedKeys().join(",");
saveEpIds(epIds);
}
直接通过this.$refs.epIdsTree.getCheckedKeys()就可获获取当前选中的节点,不需要额外加个临时数组保存
saveEpIds(){
const epIds = this.$refs.epIdsTree.getCheckedKeys().join(",");
saveEpIds(epIds);
}