fix(FullyAutoAndSemiAutoTools): 修复路径拼接逻辑问题

- 添加了对 parentName 与 rootName 相同情况的判断条件
- 避免了当 parentName 和 rootName 相同时的重复路径拼接
- 确保了路径层级关系的正确性
This commit is contained in:
yan
2026-01-29 17:43:50 +08:00
parent d1bef9de96
commit cfa86be643

View File

@@ -781,7 +781,7 @@ async function initRun(config_run) {
return `${item.rootName}${separator}${item.parentName}${separator}${item.name}`;
}
// 然后处理 useParent 或 parentName 存在的情况
if (useParent || item.parentName) {
if (useParent || (item.parentName && item.parentName !== item.rootName)) {
return `${item.parentName}${separator}${item.name}`;
}
// 默认返回 name