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');