mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-04-01 06:09:50 +08:00
feat(config): 添加模板匹配设置功能并优化配置过滤逻辑
- 新增 templateMatchSettingsJson 配置文件路径定义 - 修复路径筛选中的 find 方法使用方式 - 实现模板匹配设置的读取和配置项过滤 - 优化 UID 设置过滤逻辑并添加分隔符结构 - 调整配置层级判断条件从大于改为大于等于 - 将最终配置写入改为使用模板匹配设置而非 UID 设置
This commit is contained in:
@@ -321,7 +321,7 @@ async function initRefresh(settingsConfig) {
|
||||
label: `${p}选择要执行的${item.level + 1}级路径`,
|
||||
options: []
|
||||
}
|
||||
let filter = PATH_JSON_LIST.filter(list_item => list_item.id === item.parentId).find();
|
||||
let filter = PATH_JSON_LIST.filter(list_item => list_item.id === item.parentId).find(item => item);
|
||||
if (filter) {
|
||||
// filter.levelName = name || undefined
|
||||
PATH_JSON_LIST.forEach(list_item => {
|
||||
|
||||
Reference in New Issue
Block a user