Skip to content

Commit

Permalink
fix(用例管理): 修复回收站点击模块树父节点不显示子资源的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomeinvG authored and fit2-zhao committed Apr 16, 2024
1 parent 794008a commit b86e967
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
showSetting: true,
heightUsed: 380,
enableDrag: true,
showSubdirectory: true,
},
(record) => ({
...record,
Expand Down Expand Up @@ -569,11 +570,15 @@
// 用例树节点选中事件
const caseNodeSelect = (selectedNodeKeys: (string | number)[] | string[], node: MsTreeNodeData) => {
[activeFolder.value] = selectedNodeKeys as string[];
console.log('node');
console.log(node);
offspringIds.value = [];
mapTree(node.children || [], (e) => {
offspringIds.value.push(e.id);
return e;
});
console.log('offspringIds');
console.log(offspringIds);
focusNodeKey.value = '';
};
Expand Down

0 comments on commit b86e967

Please sign in to comment.