From f276eba39567c551cc64559cf9b8b004b8b469c2 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Tue, 20 Oct 2026 07:40:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20=E4=BF=AE=E5=A4=8D=E5=B0=8F?= =?UTF-8?q?=E8=AF=B4=E7=AD=9B=E9=80=89=E9=A1=B5=E5=88=9D=E5=A7=8B=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=9C=AA=E9=80=89=E4=B8=AD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/mobile/book/bookclass.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/novel-front/src/main/resources/templates/mobile/book/bookclass.html b/novel-front/src/main/resources/templates/mobile/book/bookclass.html index cfa345a..4b1a2e4 100644 --- a/novel-front/src/main/resources/templates/mobile/book/bookclass.html +++ b/novel-front/src/main/resources/templates/mobile/book/bookclass.html @@ -387,7 +387,9 @@ keyword = ""; } - if (bookStatus !== null && bookStatus !== "") { + // getQueryVariable 未命中时返回 false,若用 !==null/!=="" 判断会误入同步逻辑, + // 导致所有状态胶囊被移除 active,「不限」初始值不选中;改用真值判断('0'/'1' 为非空字符串不受影响) + if (bookStatus) { $("#status").val(bookStatus); $('#statusPills .pill').removeClass('active') .filter('[data-val="' + bookStatus + '"]').addClass('active');