From 441a7ecd78677bb83b7a139c2694ea28db9e7fde Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 21 Jul 2024 00:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 1352a923..d7662d4d 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -462,6 +462,7 @@ function selectSource() { title: "切换源分组", //position: groupnames.indexOf(sourceName), click(s) { + let flist; if(s.startsWith('[')){ inputBox.setTitle('全部'); inputBox.setDefaultValue(s); @@ -476,9 +477,11 @@ function selectSource() { }); manage.change(); */ + tmpList = sourceList.filter(x => x.name.includes(s)); }else{ inputBox.setTitle(s); inputBox.setDefaultValue(""); + /* sourceList = getGroupLists(sourceAllList, s); tmpList = sourceList; names = getnames(tmpList).names; @@ -487,9 +490,18 @@ function selectSource() { manage.list.push(x); }); manage.change(); + */ + + tmpList = getGroupLists(sourceAllList, s); + } - + flist = getnames(tmpList).names; + manage.list.length = 0; + flist.forEach(x => { + manage.list.push(x); + }); + manage.change(); } }); },