From b95fb9a20ceeb8ecfc10f6fcb2de7016ce40dcee Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 7 Oct 2022 20:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0js=E6=96=B0=E5=A2=9E=E5=8A=A8?= =?UTF-8?q?=E6=80=81=E5=88=86=E7=B1=BB=E6=8E=92=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/drpy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/drpy.js b/libs/drpy.js index d9999f4..dee1593 100644 --- a/libs/drpy.js +++ b/libs/drpy.js @@ -888,6 +888,8 @@ function homeParse(homeObj) { } } + // 排除分类 + classes = classes.filter(it=>!homeObj.cate_exclude || !(new RegExp(homeObj.cate_exclude).test(it.type_name))); let resp = { 'class': classes }; -- GitLab