fix(用例管理): 修复回收站点击模块树父节点不显示子资源的问题

--bug=1039437 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001039437
This commit is contained in:
guoyuqi 2024-04-16 10:20:40 +08:00 committed by Craftsman
parent 794008a6a3
commit b86e967655
1 changed files with 5 additions and 0 deletions

View File

@ -338,6 +338,7 @@
showSetting: true,
heightUsed: 380,
enableDrag: true,
showSubdirectory: true,
},
(record) => ({
...record,
@ -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 = '';
};