mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-27 05:19:51 +08:00
fix(FullyAutoAndSemiAutoTools): 修复路径拼接逻辑问题
- 添加了对 parentName 与 rootName 相同情况的判断条件 - 避免了当 parentName 和 rootName 相同时的重复路径拼接 - 确保了路径层级关系的正确性
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user