From 25b2d3f36fb1cb5c34d57d73eb9b6067e2830817 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 17 Dec 2024 13:57:38 +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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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,