diff --git a/SrcJyPublic.js b/SrcJyPublic.js index c6f11204..3e6444ce 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -702,12 +702,8 @@ function selectSource() { manage.change(); manage.scrollToPosition(index, true); } else if (i === 2) { - let sorttype = ["更新时间","接口名称","使用频率"]; - sorttype.forEach(v=>{ - if(v==getItem('sourceListSort','更新时间')){ - v = v+"√"; - } - }); + let sorttype = ["更新时间","接口名称","使用频率"].map(v=>v==getItem('sourceListSort','更新时间')?v+"√":v); + log(sorttype); showSelectOptions({ "title": "选择排序方式", "options" : sorttype,