diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java index 106640378e..25293bdb69 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseModuleService.java @@ -67,6 +67,11 @@ public class FunctionalCaseModuleService extends ModuleTreeService { public List getTree(String projectId) { List functionalModuleList = extFunctionalCaseModuleMapper.selectBaseByProjectId(projectId); + functionalModuleList.forEach(baseTreeNode -> { + if (StringUtils.equalsIgnoreCase(baseTreeNode.getParentId(), ModuleConstants.ROOT_NODE_PARENT_ID)) { + baseTreeNode.setPath(baseTreeNode.getPath() + baseTreeNode.getName()); + } + }); return super.buildTreeAndCountResource(functionalModuleList, true, Translator.get("functional_case.module.default.name")); }