From f9b0853ca0ba6adceea84ce03585685680d099ff Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 20 Jul 2024 23:05:22 +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 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 88543cc3..c8862a99 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -447,8 +447,7 @@ function selectSource() { click(s, manage) { let groupnames = getJiekouGroups(sourceAllList); let tags = getJkTags(sourceAllList); - let fgs = ['-','-']; - let selects = ['全部'].concat(fgs).concat(groupnames).concat(fgs).concat(tags); + let selects = ['全部'].concat(groupnames).concat(tags); //inputBox.setHint("提示"); hikerPop.selectCenter({ options: selects, @@ -456,9 +455,15 @@ function selectSource() { title: "切换源分组", //position: groupnames.indexOf(sourceName), click(a) { - inputBox.setTitle(a); - inputBox.setDefaultValue(""); - sourceList = getGroupLists(sourceAllList, a); + if(a.startsWith('[')){ + inputBox.setTitle('全部'); + inputBox.setDefaultValue(a); + sourceList = getGroupLists(sourceAllList, '全部'); + }else{ + inputBox.setTitle(a); + inputBox.setDefaultValue(""); + sourceList = getGroupLists(sourceAllList, a); + } tmpList = sourceList; names = sourceList.map((v,i) => { return v.name;