From cfa86be6433b3e406a65cb4196eb8497f2a07b4a Mon Sep 17 00:00:00 2001 From: yan Date: Thu, 29 Jan 2026 17:43:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(FullyAutoAndSemiAutoTools):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E8=B7=AF=E5=BE=84=E6=8B=BC=E6=8E=A5=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加了对 parentName 与 rootName 相同情况的判断条件 - 避免了当 parentName 和 rootName 相同时的重复路径拼接 - 确保了路径层级关系的正确性 --- repo/js/FullyAutoAndSemiAutoTools/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo/js/FullyAutoAndSemiAutoTools/main.js b/repo/js/FullyAutoAndSemiAutoTools/main.js index 020fb04dd..9518906ad 100644 --- a/repo/js/FullyAutoAndSemiAutoTools/main.js +++ b/repo/js/FullyAutoAndSemiAutoTools/main.js @@ -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