From 63470cdf5978eb6cb72761d50b9348b8b152932d Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 21 Jan 2026 11:39:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(config):=20=E4=BF=AE=E5=A4=8D=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD=E7=9A=84=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在settings.json中为配置uid标签添加换行符以改善显示 - 在config/settings.json中同步更新配置uid标签的换行格式 - 修改main.js中添加theLayer变量来控制层级加载逻辑 - 将硬编码的false条件替换为动态的theLayer变量判断 --- repo/js/FullyAutoAndSemiAutoTools/config/settings.json | 4 ++-- repo/js/FullyAutoAndSemiAutoTools/main.js | 3 ++- repo/js/FullyAutoAndSemiAutoTools/settings.json | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/repo/js/FullyAutoAndSemiAutoTools/config/settings.json b/repo/js/FullyAutoAndSemiAutoTools/config/settings.json index 2389cb2be..6f1298cb2 100644 --- a/repo/js/FullyAutoAndSemiAutoTools/config/settings.json +++ b/repo/js/FullyAutoAndSemiAutoTools/config/settings.json @@ -2,7 +2,7 @@ { "name": "config_uid", "type": "checkbox", - "label": "当前配置uid:{无}(仅仅显示配置uid无其他作用)", + "label": "当前配置uid:{无}\n(仅仅显示配置uid无其他作用)", "default": false }, { @@ -47,7 +47,7 @@ { "name": "loading_level", "type": "input-text", - "label": "加载路径层级(不可小于1)<配置模式 刷新 生效>", + "label": "加载路径层级(不可小于1)<配置模式 刷新||加载 生效>", "default": "2" }, { diff --git a/repo/js/FullyAutoAndSemiAutoTools/main.js b/repo/js/FullyAutoAndSemiAutoTools/main.js index 707fdde99..a3ffe1d56 100644 --- a/repo/js/FullyAutoAndSemiAutoTools/main.js +++ b/repo/js/FullyAutoAndSemiAutoTools/main.js @@ -527,11 +527,12 @@ async function loadUidSettingsMap(uidSettingsMap) { return (settings_level.path.includes(dir_key)) } }) + const theLayer = settings.the_layer || false const levelSettings = filterSettings.filter(item => { const level_all = item.name.replaceAll(levelName, ""); // 获取级别 const level = level_all.split("_").filter(item => item?.trim() !== "").map(parseInt)[0] - if (false && loadingLevel === level + 1) { + if (theLayer && loadingLevel === level + 1) { //只加载指定级别的设置 return (loadingLevel === level + 1) } diff --git a/repo/js/FullyAutoAndSemiAutoTools/settings.json b/repo/js/FullyAutoAndSemiAutoTools/settings.json index 2389cb2be..6f1298cb2 100644 --- a/repo/js/FullyAutoAndSemiAutoTools/settings.json +++ b/repo/js/FullyAutoAndSemiAutoTools/settings.json @@ -2,7 +2,7 @@ { "name": "config_uid", "type": "checkbox", - "label": "当前配置uid:{无}(仅仅显示配置uid无其他作用)", + "label": "当前配置uid:{无}\n(仅仅显示配置uid无其他作用)", "default": false }, { @@ -47,7 +47,7 @@ { "name": "loading_level", "type": "input-text", - "label": "加载路径层级(不可小于1)<配置模式 刷新 生效>", + "label": "加载路径层级(不可小于1)<配置模式 刷新||加载 生效>", "default": "2" }, {