From 09c8f13bbdd78e8850800fe6a1b22e78b95b6331 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 29 Jan 2024 23:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 643d718d..84a64b0b 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -44,12 +44,14 @@ let erdatalist = yxdatalist.filter(it=>{ function selectsource(input) { let sourcenames = []; + let sourcetypes = []; yidatalist.forEach(it=>{ if((getItem('listtype')=="group"?it.group||it.type:it.type)==input && sourcenames.indexOf(it.name)==-1){ if(Juconfig[runMode+'sourcename'] == it.name){ it.name = '‘‘’’'+it.name+''; } sourcenames.push(it.name); + sourcetypes.push(it.type); } }) return $(sourcenames,3,"选择"+input+"主页源").select((runMode,sourcename,cfgfile,Juconfig) => { @@ -92,7 +94,7 @@ function selectsource(input) { writeFile(cfgfile, JSON.stringify(Juconfig)); refreshPage(false); return 'toast://'+runMode+' 主页源已设置为:' + input; - }, input, sourcename, cfgfile, Juconfig) + }, sourcetypes[sourcenames.indexOf(input)], sourcename, cfgfile, Juconfig) } function rulePage(datatype,ispage) {