From 606dec8c29d01cae3df40c47e5d3a8657fbf49e2 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 3 Feb 2024 20:45:28 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 13e9620f..3106c312 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -92,7 +92,7 @@ function selectSource(selectType) { } }) */ - const hikerPop = require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'hikerPop.js'); + const hikerPop = $.require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'hikerPop.js'); getListData("yi",selectType).forEach(it=>{ if(sourcenames.indexOf(it.name)==-1){ if(Juconfig[runMode+'sourcename'] == it.name){ @@ -104,6 +104,9 @@ function selectSource(selectType) { if(sourcenames.length==0){ return "toast://当前分类无接口" } + if(getItem('sourceListSort','update') == 'name'){ + sourcenames.sort(); + } //return $(sourcenames,3,"选择 "+selectType+" 主页源").select((runMode,sourcename,cfgfile,Juconfig) => { hikerPop.selectCenterIcon({iconList: sourcenames, title: selectType + ">主页源>" + sourcename, columns: 2, click(input) { input = input.replace(/‘|’|“|”|<[^>]+>/g,"").replace(/(.*)√/,'$1');